Change Axis Notation in Figure from Scientific to Normal

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

Answers (1)

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 Comment

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')

Sign in to comment.

Categories

Asked:

on 27 Oct 2016

Commented:

on 27 Oct 2016

Community Treasure Hunt

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

Start Hunting!