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 instead of functions:

gca().set_xlim(gca().get_xlim()[::-1])

Note the [::-1], that will reverse your tuple.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to