tags:

views:

260

answers:

1

Is there a way to turn the y axis upside down in matlab plots, so that the positive direction of the y axis, instead of up, points down ?

(I beg of you; please do not say, print it out, then turn the paper around ;-)

+7  A: 

You can change the y-axis direction of the currently active axes with the following:

set(gca,'YDir','reverse');

For a complete list of all the axes properties you can modify, check out this documentation page.

gnovice
ldigas

related questions