[Yt-svn] yt-commit r1636 - branches/yt-1.6/yt/raven trunk/yt/raven
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Feb 16 07:44:43 PST 2010
Author: mturk
Date: Tue Feb 16 07:44:42 2010
New Revision: 1636
URL: http://yt.enzotools.org/changeset/1636
Log:
This should fix the bug reported by Luigi Iapichino wherein a phase plot added
with a specified cmap= argument was not updating the colorbar.
Modified:
branches/yt-1.6/yt/raven/PlotTypes.py
trunk/yt/raven/PlotTypes.py
Modified: branches/yt-1.6/yt/raven/PlotTypes.py
==============================================================================
--- branches/yt-1.6/yt/raven/PlotTypes.py (original)
+++ branches/yt-1.6/yt/raven/PlotTypes.py Tue Feb 16 07:44:42 2010
@@ -778,7 +778,7 @@
self.norm = matplotlib.colors.Normalize()
self.image = self._axes.pcolormesh(self.x_bins, self.y_bins,
temparray, shading='flat',
- norm=self.norm)
+ norm=self.norm, cmap=self.cmap)
self.colorbar = self._figure.colorbar(self.image,
extend='neither', shrink=0.95,
format="%0.2e" )
Modified: trunk/yt/raven/PlotTypes.py
==============================================================================
--- trunk/yt/raven/PlotTypes.py (original)
+++ trunk/yt/raven/PlotTypes.py Tue Feb 16 07:44:42 2010
@@ -801,7 +801,7 @@
self.norm = matplotlib.colors.Normalize()
self.image = self._axes.pcolormesh(self.x_bins, self.y_bins,
temparray, shading='flat',
- norm=self.norm)
+ norm=self.norm, cmap=self.cmap)
self.colorbar = self._figure.colorbar(self.image,
extend='neither', shrink=0.95,
format="%0.2e" )
More information about the yt-svn
mailing list