Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## Re: [Matplotlib-users] reversing an axis

 Re: [Matplotlib-users] reversing an axis From: belinda thom - 2007-03-23 22:30:27 ```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: > > bottom, top = ylim() > ylim(top, bottom) > > Eric > >> 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 >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ```

 [Matplotlib-users] reversing an axis From: belinda thom - 2007-03-23 21:48:38 ```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 ```
 Re: [Matplotlib-users] reversing an axis From: Eric Firing - 2007-03-23 22:17:15 ```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 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 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ```
 Re: [Matplotlib-users] reversing an axis From: belinda thom - 2007-03-23 22:30:27 ```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: > > bottom, top = ylim() > ylim(top, bottom) > > Eric > >> 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 >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ```