Re: [Matplotlib-users] reversing an axis

2007-03-23 Thread belinda thom
Eric, This is great; much thanks! --b On Mar 23, 2007, at 3:16 PM, Eric Firing wrote: > belinda thom wrote: >> Hi, >> I'm wondering if there's an easy way to reverse an axis in a plot. > > Using methods: > > bottom, top = ax.get_ylim() > ax.set_ylim(top, bottom) > > Or using pylab functions: >

Re: [Matplotlib-users] reversing an axis

2007-03-23 Thread Eric Firing
belinda thom wrote: > Hi, > > I'm wondering if there's an easy way to reverse an axis in a plot. Using methods: bottom, top = ax.get_ylim() ax.set_ylim(top, bottom) Or using pylab functions: bottom, top = ylim() ylim(top, bottom) Eric > > For instance, suppose I wanted to create a plot that

[Matplotlib-users] reversing an axis

2007-03-23 Thread belinda thom
Hi, I'm wondering if there's an easy way to reverse an axis in a plot. For instance, suppose I wanted to create a plot that had its "origin" in the upper left hand corner, so that x would range from, say 0 to 1 moving right, and y would range from, say 0 to 1, moving down. Thanks! --b ---