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.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to