[Yt-svn] yt-commit r1553 - branches/yt-1.5/yt/raven trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Dec 2 12:25:11 PST 2009


Author: mturk
Date: Wed Dec  2 12:25:06 2009
New Revision: 1553
URL: http://yt.enzotools.org/changeset/1553

Log:
Hot fix for turning off autoscaling before setting zlim.  Should not be a
long-term fix.



Modified:
   branches/yt-1.5/yt/raven/PlotTypes.py
   trunk/yt/raven/PlotTypes.py

Modified: branches/yt-1.5/yt/raven/PlotTypes.py
==============================================================================
--- branches/yt-1.5/yt/raven/PlotTypes.py	(original)
+++ branches/yt-1.5/yt/raven/PlotTypes.py	Wed Dec  2 12:25:06 2009
@@ -157,6 +157,7 @@
         """
         # This next call fixes some things, but is slower...
         self._redraw_image()
+        self.set_autoscale(False)
         if (zmin in (None,'min')) or (zmax in (None,'max')):    
             imbuff = self._axes.images[-1]._A
             if zmin == 'min':

Modified: trunk/yt/raven/PlotTypes.py
==============================================================================
--- trunk/yt/raven/PlotTypes.py	(original)
+++ trunk/yt/raven/PlotTypes.py	Wed Dec  2 12:25:06 2009
@@ -157,6 +157,7 @@
         """
         # This next call fixes some things, but is slower...
         self._redraw_image()
+        self.set_autoscale(False)
         if (zmin in (None,'min')) or (zmax in (None,'max')):    
             imbuff = self._axes.images[-1]._A
             if zmin == 'min':



More information about the yt-svn mailing list