Revision: 6405
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6405&view=rev
Author:   pkienzle
Date:     2008-11-14 22:25:28 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
patches: use None rather than 0 for full wedge

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/patches.py

Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py  2008-11-14 22:19:02 UTC (rev 
6404)
+++ trunk/matplotlib/lib/matplotlib/patches.py  2008-11-14 22:25:28 UTC (rev 
6405)
@@ -718,7 +718,7 @@
     def __str__(self):
         return "Wedge(%g,%g)"%(self.theta1,self.theta2)
 
-    def __init__(self, center, r, theta1, theta2, width=0, **kwargs):
+    def __init__(self, center, r, theta1, theta2, width=None, **kwargs):
         """
         Draw a wedge centered at *x*, *y* center with radius *r* that
         sweeps *theta1* to *theta2* (in degrees).  If *width* is given,
@@ -745,7 +745,7 @@
         # Form the outer ring
         arc = Path.arc(theta1,theta2)
 
-        if width != 0:
+        if width is not None:
             # Partial annulus needs to draw the outter ring
             # followed by a reversed and scaled inner ring
             v1 = arc.vertices


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to