Hi
I've got a plot, containing a graph.
I would like to look at certain parts of it.
To do this I zoom in on the x-axis using set_xlim()
Then I would like to call autoscale(axis='y') and have matplotlib
autoscale the y axis within the current x-axis.
I've tried several ways of doing this, both with autoscale and
set_ylim(auto=True)
but non of them have been able to do this, as they only autoscale y on the
full graph.
In the end I ended up writing my own code for calculating the new ymin and
ymax ans using set_ylim([ymin, ymax]),
but I feel that this should not be necessary.
While googling for the a solution I found an earlier e-mail on the
matplotlib list,
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19664.html
which describes the same problem, but was never answered.
Is there any other solution for this that I've missed?
Regards
Pål
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users