Exponent on top or on the right of the axis, control, turn off?
272 views (last 30 days)
Show older comments
Bob photonics
on 12 Jul 2019
Commented: Bob photonics
on 12 Jul 2019
Hi everyone,
If I'm plotting small numbers with power of 10^-4 or smaller then on my Y-axis matlab puts a x10^-4 on top of the axis. It does the same for the X-axis but on the right. see the image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/229593/image.png)
I have not been able to find a way to control this and have matlab write these exponents in my Y tick labels EXCEPT for manual methods.
I'm not looking for manual methods, I'm looking for a way where I don't have to enter my labels by hand for each and every graph as my graphs have different limits and thus different tick labels. So either I move it to the axis or I would like to move the location of where it's shown.
I prefer having the ticks on my axis read 2e-7, 4e-7, ..., 1.2e-6, 1.4e-6 (or 12e-7, 14e-7). The reason is simple, I think it prevents misinterpretation and makes the plots clearer and it doesn't get in the way of the title.
Please let me know what would be possible in this regard.
This is how I set the limits of each graph at the moment btw:
neffsubset1=neff(:,ixT,:,mode); %4-D matrix, extracting relevant data
% Set y axes
ymin=real(min(imag(neffsubset1(imag(neffsubset1)>0)))); %finding the minimum value for the imaginary part in the subset
ymax=real(max(imag(neffsubset1(imag(neffsubset1)>0)))); %find max value
ylim([ymin ymax])
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!