I have made a plot in Matlab, using:
hold on
plot(t1,Dx1,'r')
xlabel('t (ps)')
ylabel('Deviation of coordinate from initial coordinate (Å)')
plot(t1,Dy1,'g')
plot(t1,Dz1,'b')
hold off
However, the tick labels on the y axis are generated in scientific notation:
Is there any way I can remove the scientific notation and just have the y labels range from -0.0025 to 0.0005? Thanks!
解决方案
You could try to manually set the tick labels yourself using sprintf:
yt = get(gca,'YTick');
set(gca,'YTickLabel', sprintf('%.4f|',yt))