How do I change the position of the exponent associated with my Y-axis in MATLAB 7.6 (R2008a)?
5 views (last 30 days)
Show older comments
I would like to be able to move the exponent displayed when plotting large Y values. Especially in the case of long titles it would be useful that the exponent can be repositioned.
For example:
plot(1:10^3:10^8)
this will have the exponent 10^7 displayed at a specific location. I would like to change this location so that I can place it at a different location.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The ability to change the position of axis label exponents is not available in MATLAB 7.6. (R2008a) and prior versions.
To work around this issue you can manually add a text object, equivalent to the exponent, at a desired location in figure.
For example:
plot(1:10^3:10^8)
set(gca,'yticklabels',[0:10:100])
h = gtext('x10^6')
set(h,'FontSize',12)
this will give generate a figure with crosshair. You can click at any location in the figure to place the text object at that location.
0 Comments
More Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!