From: <jd...@us...> - 2010-03-03 16:56:31
|
Revision: 8173 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8173&view=rev Author: jdh2358 Date: 2010-03-03 16:56:16 +0000 (Wed, 03 Mar 2010) Log Message: ----------- applied Mattias get_bounds patch Modified Paths: -------------- branches/v0_99_maint/doc/users/artists.rst branches/v0_99_maint/lib/matplotlib/backends/backend_wxagg.py branches/v0_99_maint/lib/matplotlib/finance.py branches/v0_99_maint/lib/matplotlib/patches.py Modified: branches/v0_99_maint/doc/users/artists.rst =================================================================== --- branches/v0_99_maint/doc/users/artists.rst 2010-03-03 16:31:42 UTC (rev 8172) +++ branches/v0_99_maint/doc/users/artists.rst 2010-03-03 16:56:16 UTC (rev 8173) @@ -419,7 +419,7 @@ # and notice that the ax.add_patch method has set the axes # instance In [267]: print rect.get_axes() - Subplot(49,81.25) + Axes(0.125,0.1;0.775x0.8) # and the transformation has been set too In [268]: print rect.get_transform() @@ -434,7 +434,7 @@ (0.0, 1.0) # but the data limits have been updated to encompass the rectangle - In [271]: print ax.dataLim.get_bounds() + In [271]: print ax.dataLim.bounds (1.0, 1.0, 5.0, 12.0) # we can manually invoke the auto-scaling machinery Modified: branches/v0_99_maint/lib/matplotlib/backends/backend_wxagg.py =================================================================== --- branches/v0_99_maint/lib/matplotlib/backends/backend_wxagg.py 2010-03-03 16:31:42 UTC (rev 8172) +++ branches/v0_99_maint/lib/matplotlib/backends/backend_wxagg.py 2010-03-03 16:56:16 UTC (rev 8173) @@ -171,7 +171,7 @@ """ Convert the region of a wx.Image bounded by bbox to a wx.Bitmap. """ - l, b, width, height = bbox.get_bounds() + l, b, width, height = bbox.bounds r = l + width t = b + height @@ -238,7 +238,7 @@ Note: agg must be a backend_agg.RendererAgg instance. """ - l, b, width, height = bbox.get_bounds() + l, b, width, height = bbox.bounds r = l + width t = b + height Modified: branches/v0_99_maint/lib/matplotlib/finance.py =================================================================== --- branches/v0_99_maint/lib/matplotlib/finance.py 2010-03-03 16:31:42 UTC (rev 8172) +++ branches/v0_99_maint/lib/matplotlib/finance.py 2010-03-03 16:56:16 UTC (rev 8173) @@ -597,8 +597,8 @@ maxy = max([volume for d, open, close, high, low, volume in quotes]) corners = (minpy, miny), (maxx, maxy) ax.update_datalim(corners) - #print 'datalim', ax.dataLim.get_bounds() - #print 'viewlim', ax.viewLim.get_bounds() + #print 'datalim', ax.dataLim.bounds + #print 'viewlim', ax.viewLim.bounds ax.add_collection(barCollection) ax.autoscale_view() Modified: branches/v0_99_maint/lib/matplotlib/patches.py =================================================================== --- branches/v0_99_maint/lib/matplotlib/patches.py 2010-03-03 16:31:42 UTC (rev 8172) +++ branches/v0_99_maint/lib/matplotlib/patches.py 2010-03-03 16:56:16 UTC (rev 8173) @@ -1383,12 +1383,12 @@ pad = props.pop('pad', 4) pad = renderer.points_to_pixels(pad) bbox = artist.get_window_extent(renderer) - l,b,w,h = bbox.bounds - l-=pad/2. - b-=pad/2. - w+=pad - h+=pad - r = Rectangle(xy=(l,b), + l, b, w, h = bbox.bounds + l -= pad/2. + b -= pad/2. + w += pad + h += pad + r = Rectangle(xy=(l, b), width=w, height=h, fill=fill, @@ -1407,8 +1407,8 @@ to test whether the artist is returning the correct bbox. """ - l,b,w,h = bbox.get_bounds() - r = Rectangle(xy=(l,b), + l, b, w, h = bbox.bounds + r = Rectangle(xy=(l, b), width=w, height=h, edgecolor=color, @@ -3174,7 +3174,7 @@ cos_t, sin_t = get_cos_sin(x1, y1, x0, y0) verticesA, codesA = self._get_bracket(x0, y0, cos_t, sin_t, self.widthA*scaleA, - self.legnthA*scaleA) + self.lengthA*scaleA) vertices_list.append(verticesA) codes_list.append(codesA) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |