|
From: <lee...@us...> - 2010-01-29 17:33:40
|
Revision: 8104
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8104&view=rev
Author: leejjoon
Date: 2010-01-29 17:33:34 +0000 (Fri, 29 Jan 2010)
Log Message:
-----------
fix axes_grid for offsetbox api change
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/offsetbox.py
trunk/matplotlib/lib/mpl_toolkits/axes_grid/inset_locator.py
Modified: trunk/matplotlib/lib/matplotlib/offsetbox.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/offsetbox.py 2010-01-29 17:33:21 UTC (rev 8103)
+++ trunk/matplotlib/lib/matplotlib/offsetbox.py 2010-01-29 17:33:34 UTC (rev 8104)
@@ -958,7 +958,7 @@
if fontsize is None:
fontsize = renderer.points_to_pixels(self.prop.get_size_in_points())
- def _offset(w, h, xd, yd, fontsize=fontsize, self=self):
+ def _offset(w, h, xd, yd, renderer, fontsize=fontsize, self=self):
bbox = Bbox.from_bounds(0, 0, w, h)
borderpad = self.borderpad*fontsize
bbox_to_anchor = self.get_bbox_to_anchor()
Modified: trunk/matplotlib/lib/mpl_toolkits/axes_grid/inset_locator.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/inset_locator.py 2010-01-29 17:33:21 UTC (rev 8103)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/inset_locator.py 2010-01-29 17:33:34 UTC (rev 8104)
@@ -47,7 +47,7 @@
width, height, xdescent, ydescent = self.get_extent(renderer)
- px, py = self.get_offset(width, height, 0, 0)
+ px, py = self.get_offset(width, height, 0, 0, renderer)
bbox_canvas = mtrans.Bbox.from_bounds(px, py, width, height)
tr = ax.figure.transFigure.inverted()
bb = mtrans.TransformedBbox(bbox_canvas, tr)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|