Re: [Matplotlib-users] inverted x-axis

2007-09-04 Thread Pierre GM
On Tuesday 04 September 2007 17:53:56 Johann Cohen-Tanugi wrote: > Jouni, > thanks for your reply. > I could test that > plot([1,2,3],[1,2,3]) > setp(gca(), 'xlim', (3.0,1.0)) > works, > but > setp(gca(), 'xlim', reversed(getp(gca(), 'xlim'))) Johann, You may find it easier to use methods inste

Re: [Matplotlib-users] inverted x-axis

2007-09-04 Thread Johann Cohen-Tanugi
Jouni, thanks for your reply. I could test that plot([1,2,3],[1,2,3]) setp(gca(), 'xlim', (3.0,1.0)) works, but setp(gca(), 'xlim', reversed(getp(gca(), 'xlim'))) gives me an error : --- TypeError

Re: [Matplotlib-users] inverted x-axis

2007-09-03 Thread Jouni K . Seppänen
Johann Cohen-Tanugi <[EMAIL PROTECTED]> writes: > I would like to know if there is an easy to invert a axis (specifically > the x-axis), id est to have the labels between say 0 an1 automatically > run from right to left. setp(gca(), 'xlim', reversed(getp(gca(), 'xlim'))) i.e., just put the lar