how to raise he x axis overall scale to the top
Show older comments
This is annoying: In MAtlab 2010a, I'm trying to raise the x-axis of a plot to the top of the axes, using: 'XAxisLocation' property. Example:
figure
plot([1,2,3]*1e-6,[1,2,3].^2)
set(gca,'Xaxislocation','top')
However, note that the 'x 10^-6' text is still at the bottom. Is it a bug? Is there anyway to raise it up?
Thanks
Izhar
7 Comments
Daniel Shub
on 27 Mar 2012
I can confirm that this also happens in r2011a. I would say it is a bug and you should report it to TMW. Can you rescale your x data so that it doesn't need the scale unit?
Oleg Komarov
on 27 Mar 2012
Uhm...very fishy http://www.mathworks.co.uk/support/bugreports/details.html?rp=102505
It is supposed to be fixed BUT it's not!
Izhar Neder
on 27 Mar 2012
Oleg Komarov
on 27 Mar 2012
Submit a bug report to the technical support. Maybe they'll provide a better workaround.
Izhar Neder
on 27 Mar 2012
Oleg Komarov
on 27 Mar 2012
http://www.mathworks.co.uk/support/service_requests/contact_support.do
Izhar Neder
on 27 Mar 2012
Answers (0)
Categories
Find more on Axis Labels 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!