Could you tell me how can I change an axis "multiplier"? I mean a value I circled in the picture, let's say I would like to have x10^3 instead of x10^4.
5
votes
4 Answers
1
votes
5
votes
3
votes
I have little bit tricky solution:
- Set
YTickMode
tomanual
. - Set your own
YTickLabel
. - Place the text on top with your desired multiplier.
here is:
set(gca, 'YTickMode', 'manual');
set(gca, 'YTickLabel', get(gca,'YTick') / 1000);
text(0, 1.02 * get(gca,'YLim')(2), 'x 10^3');
Play with the multiplier 1.02
in the third line to place your text to the good place.