|
From: <ef...@us...> - 2008-11-17 23:08:23
|
Revision: 6412
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6412&view=rev
Author: efiring
Date: 2008-11-17 23:08:20 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
Use autoscale_view for contour plot autoscaling
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/contour.py
Modified: trunk/matplotlib/lib/matplotlib/contour.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/contour.py 2008-11-17 19:34:28 UTC (rev 6411)
+++ trunk/matplotlib/lib/matplotlib/contour.py 2008-11-17 23:08:20 UTC (rev 6412)
@@ -625,8 +625,7 @@
y0 = ma.minimum(y)
y1 = ma.maximum(y)
self.ax.update_datalim([(x0,y0), (x1,y1)])
- self.ax.set_xlim((x0, x1))
- self.ax.set_ylim((y0, y1))
+ self.ax.autoscale_view()
def changed(self):
tcolors = [ (tuple(rgba),) for rgba in
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|