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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Thu Dec 11 18:11:40 PST 2008


Author: mturk
Date: Thu Dec 11 18:11:40 2008
New Revision: 1006
URL: http://yt.spacepope.org/changeset/1006

Log:
A fix for the MPL bbox bounds issue using compatibility layer for 0.98 & 0.91.




Modified:
   trunk/yt/raven/Callbacks.py

Modified: trunk/yt/raven/Callbacks.py
==============================================================================
--- trunk/yt/raven/Callbacks.py	(original)
+++ trunk/yt/raven/Callbacks.py	Thu Dec 11 18:11:40 2008
@@ -461,7 +461,7 @@
         from matplotlib.patches import Circle
         x0, x1 = plot.xlim
         y0, y1 = plot.ylim
-        l, b, width, height = plot._axes.bbox.get_bounds()
+        l, b, width, height = _get_bounds(plot._axes.bbox)
         xi = lagos.x_dict[plot.data.axis]
         yi = lagos.y_dict[plot.data.axis]
         dx = plot.image._A.shape[0] / (x1-x0)
@@ -493,12 +493,11 @@
         from matplotlib.patches import Circle
         x0, x1 = plot.xlim
         y0, y1 = plot.ylim
-        l, b, width, height = plot._axes.bbox.get_bounds()
+        l, b, width, height = _get_bounds(plot._axes.bbox)
         xi = lagos.x_dict[plot.data.axis]
         yi = lagos.y_dict[plot.data.axis]
         dx = plot.image._A.shape[0] / (x1-x0)
         dy = plot.image._A.shape[1] / (y1-y0)
-        print "there are %d haloes" % len(self.hop_output) # skory
         for halo in self.hop_output[:self.max_number]:
             radius = halo.maximum_radius() * dx
             center = halo.center_of_mass()
@@ -539,7 +538,7 @@
         from matplotlib.patches import Circle
         x0, x1 = plot.xlim
         y0, y1 = plot.ylim
-        l, b, width, height = plot._axes.bbox.get_bounds()
+        l, b, width, height = _get_bounds(plot._axes.bbox)
         xi = lagos.x_dict[plot.data.axis]
         yi = lagos.y_dict[plot.data.axis]
         dx = plot.image._A.shape[0] / (x1-x0)



More information about the yt-svn mailing list