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:
>
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
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
---