[Matplotlib-users] reversing the y axis

2007-08-24 Thread Emre Aydın
hi. i'm a new user of matplotlib. i've searched through the arhieves of the mailing list but couldn't find a quick solution. i simply need to reverse the y axis of my plots. for example in a range of 0-10, 0 must seem at the top of the plot where 10 is lowest, near to the x axis. is there a quick s

Re: [Matplotlib-users] reversing the y axis

2007-08-24 Thread Emre Aydın
On 8/24/07, Fred Ludlow <[EMAIL PROTECTED]> wrote: > # Get min and max from current axes > y_min, y_max = gca().get_ylim() > > # Set the other way round for current axes > gca().set_ylim(y_max, y_min) > > # Redraw > draw() > > > Emre Ayd?n wrote: > > hi. i'm a new user of matplotlib. i've searched