how to raise he x axis overall scale to the top

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

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?
Uhm...very fishy http://www.mathworks.co.uk/support/bugreports/details.html?rp=102505
It is supposed to be fixed BUT it's not!
I want to publish the figure in a journal, so the exponant must stay for clarity.
What I can do is rescale this x axis so that the exponent will not appear, ant then add my own text box with the exponent on the top right corner of the figure. But it is a really disgusting solution...
Submit a bug report to the technical support. Maybe they'll provide a better workaround.
How do I do that? I tried
http://www.mathworks.co.uk/support/service_requests/contact_support.do

Sign in to comment.

Answers (0)

Products

Asked:

on 27 Mar 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!