Revision: 7132
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7132&view=rev
Author:   jdh2358
Date:     2009-05-22 14:22:03 +0000 (Fri, 22 May 2009)

Log Message:
-----------
Applied Tony's circle patch

Modified Paths:
--------------
    trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py
    trunk/matplotlib/lib/matplotlib/patches.py

Modified: trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py
===================================================================
--- trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py       
2009-05-22 14:00:12 UTC (rev 7131)
+++ trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py       
2009-05-22 14:22:03 UTC (rev 7132)
@@ -147,7 +147,7 @@
         return True
 
     def OnBang(self,event):
-        bang_count = XRCCTRL(self.frame,"bang_count")
+        bang_count = xrc.XRCCTRL(self.frame,"bang_count")
         bangs = bang_count.GetValue()
         bangs = int(bangs)+1
         bang_count.SetValue(str(bangs))

Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py  2009-05-22 14:00:12 UTC (rev 
7131)
+++ trunk/matplotlib/lib/matplotlib/patches.py  2009-05-22 14:22:03 UTC (rev 
7132)
@@ -1131,6 +1131,14 @@
         self.radius = radius
         Ellipse.__init__(self, xy, radius*2, radius*2, **kwargs)
     __init__.__doc__ = cbook.dedent(__init__.__doc__) % artist.kwdocd
+    
+    def radius():
+        def fget(self):
+            return self.width / 2.
+        def fset(self, radius):
+            self.width = self.height = 2 * radius
+        return locals()
+    radius = property(**radius())
 
 class Arc(Ellipse):
     """


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to