The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: axis labels in imagesc
Replies: 1   Last Post: Jan 15, 2013 10:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: axis labels in imagesc
Posted: Jan 15, 2013 10:06 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Stephan Buchert" <> wrote in message
> I want to plot an image which is a scan by a meteorological radar. So the
> y axis is supposed to show the range, and the image rows are at increasing
> range. Meteorologists expect to see the lowest range at the bottom. So I
> need to use imagesc(x, y, idat) with y(1)>y(2), or imagesc(x, y,
> flipud(idat)), and the image is upside down as I want it, fine. The
> problem is that I want also the y axis to start with the lowest range, but
> imagesc(x, y, ...) always puts the lowest ticks at the top, no matter
> whether y(1)<y(2) or y(1)>y(2). How can I get imagesc to plot the y axis
> as in normal plots?

IMAGE (and IMAGESC) set the YDir property of the axes to 'reverse'. To undo
this, set the YDir property of the axes to 'normal'.

Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.