233 views (last 30 days)

Sometimes, when the "raw" values in the yticks are very small, matlab y axis automatically toggles to scientific notation, whereby the power of ten giving the order of magnitude appears in the top left corner, and the yticks are given in units of that power. The threshold for this behavior seems to be 1e-3, but I can't seem to find a property for forcing it on larger yticks.

I have found a few questions roughly on the same topic, but none of the relevant answers seem to apply to my case. Some people simply wanted to get rid of the scientific notation, other wanted it directly in the tick labels.

I like the "order of magnitude" format, but I am unable to force it (for instance, I'd like to have it for yticks of the order of 1e-2, for graphical homogeneity with a different plot).

Before downloading or creating an "ad hoc" code, I wanted to ask whether any of you knows a (perhaps undocumented?) way of toggling the "order of magnitude" notation.

Thanks a lot

Francesco

Steven Lord
on 24 Sep 2015

Sign in to comment.

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 4 Comments

## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_243190

⋮## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_243190

## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_289731

⋮## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_289731

## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_311955

⋮## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_311955

## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_668067

⋮## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/158707-force-scientific-notation-in-axes#comment_668067

Sign in to comment.