www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/QueryCurrentAngleForYAxisTickLabelsExample.m

    %% Query Current Angle for y-Axis Tick Labels
% Create a stem chart. Then, query the rotation angle for the _y_-axis tick
% labels. By default, the labels are not rotated.

x = linspace(0,50,20);
y = x.^2;
stem(x,y)

%%
ang = ytickangle