Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
Re: axis labels in imagesc
Posted:
Jan 15, 2013 10:06 AM
|
|
"Stephan Buchert" <stephanb007@gmail.com> wrote in message news:kd3pd0$4at$1@newscl01ah.mathworks.com... > 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'.
http://www.mathworks.com/help/matlab/ref/axes_props.html#YDir
-- Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
|
|
|