[Yt-svn] yt-commit r425 - trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Thu May 1 14:48:25 PDT 2008


Author: mturk
Date: Thu May  1 14:48:24 2008
New Revision: 425
URL: http://yt.spacepope.org/changeset/425

Log:
Fix for a colormap changing bug introduced a few days ago that I didn't catch,
and also a fix for python2.4 (yay datastar!)



Modified:
   trunk/yt/raven/PlotTypes.py
   trunk/yt/raven/__init__.py

Modified: trunk/yt/raven/PlotTypes.py
==============================================================================
--- trunk/yt/raven/PlotTypes.py	(original)
+++ trunk/yt/raven/PlotTypes.py	Thu May  1 14:48:24 2008
@@ -675,12 +675,11 @@
         self.image = self._axes.pcolormesh(self.x_bins, self.y_bins, \
                                       vals, shading='flat', \
                                       norm=self.norm, cmap=self.cmap)
-        self._axes.set_xscale("log" if self._log_x else "linear")
-        self._axes.set_yscale("log" if self._log_y else "linear")
+        self._axes.set_xscale({0:"linear",1:"log"}[int(self._log_x)])
+        self._axes.set_yscale({0:"linear",1:"log"}[int(self._log_y)])
         self.vals = vals
 
         self.colorbar.notify(self.image)
-
         self.autoset_label(self.fields[0], self._axes.set_xlabel)
         self.autoset_label(self.fields[1], self._axes.set_ylabel)
         self.autoset_label(self.fields[2], self.colorbar.set_label)

Modified: trunk/yt/raven/__init__.py
==============================================================================
--- trunk/yt/raven/__init__.py	(original)
+++ trunk/yt/raven/__init__.py	Thu May  1 14:48:24 2008
@@ -46,6 +46,7 @@
 
 vm_axis_names = {0:'x', 1:'y', 2:'z', 3:'dx', 4:'dy'}
 
+raven_colormaps = {}
 
 import PlotTypes
 import PlotTypes as be



More information about the yt-svn mailing list