Revision: 8145
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8145&view=rev
Author: jdh2358
Date: 2010-02-22 14:31:45 +0000 (Mon, 22 Feb 2010)
Log Message:
-----------
fix setters for regular polygon
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/patches.py
Modified: branches/v0_99_maint/lib/matplotlib/patches.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/patches.py 2010-02-22 14:30:59 UTC (rev 8144)
+++ branches/v0_99_maint/lib/matplotlib/patches.py 2010-02-22 14:31:45 UTC (rev 8145)
@@ -631,19 +631,22 @@
def _get_xy(self):
return self._xy
def _set_xy(self, xy):
+ self._xy = xy
self._update_transform()
xy = property(_get_xy, _set_xy)
def _get_orientation(self):
return self._orientation
- def _set_orientation(self, xy):
- self._orientation = xy
+ def _set_orientation(self, orientation):
+ self._orientation = orientation
+ self._update_transform()
orientation = property(_get_orientation, _set_orientation)
def _get_radius(self):
return self._radius
- def _set_radius(self, xy):
- self._radius = xy
+ def _set_radius(self, radius):
+ self._radius = radius
+ self._update_transform()
radius = property(_get_radius, _set_radius)
def _get_numvertices(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|