[Yt-svn] yt-commit r1429 - trunk/yt/raven
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu Sep 3 16:40:53 PDT 2009
Author: mturk
Date: Thu Sep 3 16:40:52 2009
New Revision: 1429
URL: http://yt.spacepope.org/changeset/1429
Log:
Fixing a bug where phase plots were, well, empty. Thanks to Sam for reporting
this.
Modified:
trunk/yt/raven/PlotTypes.py
Modified: trunk/yt/raven/PlotTypes.py
==============================================================================
--- trunk/yt/raven/PlotTypes.py (original)
+++ trunk/yt/raven/PlotTypes.py Thu Sep 3 16:40:52 2009
@@ -749,6 +749,14 @@
self._log_z = self.setup_bins(self.fields[2])
self.__init_colorbar()
+ def _run_callbacks(self):
+ # We sublcass to avoid the problem of replacing self.image,
+ # which is a collection
+ self._axes.patches = []
+ self._axes.texts = []
+ for cb in self._callbacks:
+ cb(self)
+
def __init_colorbar(self):
temparray = na.ones((self.x_bins.size, self.y_bins.size))
self.norm = matplotlib.colors.Normalize()
More information about the yt-svn
mailing list