Change Axis Notation in Figure from Scientific to Normal

25 次查看(过去 30 天)
Hi,
I need to change the notation style of Figure from Scientific (default) to simple number with 3 or 4 decimals. I can do this to individual figure through GUI by switching from AUTO to MANUAL in YTickLabelMode in Axis properties but dont know the command to automate it.
Will be grateful for the help.
Best regards, Rehan

回答(1 个)

the cyclist
the cyclist 2016-10-27
编辑:the cyclist 2016-10-27
set(gca,'YTickLabelMode','manual')
Depending on how far down the rabbit hole you want to go, here is a link to detailed info on graphics objects.
  1 个评论
Rehan Rehan
Rehan Rehan 2016-10-27
Thanks ...
But when I create the PNG figures in a loop, then the Y Axis ticks are inconsistent as the loop runs. As shown in the two figures created at different instances during a loop.
<<
>>
...And the code is as follows ...
set(0,'DefaultAxesFontName', 'Times New Roman')
plot(xp, displ)
hold on % To combine the two plots in one
plot(xp, displ2)
hold off
pause(0.1)
set(gca,'FontSize',18);
xlabel('x_p (m)');
ylabel('Deflection, W_c_g (m)');
set(gca,'YTickLabelMode','manual')

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by