Azzera filtri
Azzera filtri

Change Axis Notation in Figure from Scientific to Normal

25 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

the cyclist
the cyclist il 27 Ott 2016
Modificato: the cyclist il 27 Ott 2016
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 Commento
Rehan Rehan
Rehan Rehan il 27 Ott 2016
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')

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by