Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2008-01-21 11:03:48 -0800 (Mon, 21 Jan 2008)
Fix bug with pie chart slices less than 2.5 degrees.
--- branches/v0_91_maint/lib/matplotlib/patches.py 2008-01-21 18:32:57 UTC (rev 4881)
+++ branches/v0_91_maint/lib/matplotlib/patches.py 2008-01-21 19:03:48 UTC (rev 4882)
@@ -526,7 +526,9 @@
theta1 = float(theta1)
theta2 = float(theta2)
dtheta = float(dtheta)
- num_points = abs(theta2 - theta1) / dtheta
+ num_points = (abs(theta2 - theta1) / dtheta)
+ if num_points < 2.0:
+ num_points = 2.0
rads = (npy.pi/180.) * npy.linspace(theta1, theta2, num_points, endpoint=True)
xs = r*npy.cos(rads)+xc
ys = r*npy.sin(rads)+yc
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: