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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to