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

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

x = linspace(0,10000,21);
y = x.^2;
stem(x,y)
%%
ang = xtickangle