Skip to content

Commit ec2aff4

Browse files
committed
Fix matplotlib#3298. Wedge's shouldn't special case the "round the horn"
1 parent 0287479 commit ec2aff4

File tree

5 files changed

+410
-3
lines changed

5 files changed

+410
-3
lines changed

lib/matplotlib/path.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def circle(cls, center=(0., 0.), radius=1., readonly=False):
719719
MAGIC45 = np.sqrt((MAGIC*MAGIC) / 2.0)
720720

721721
vertices = np.array([[0.0, -1.0],
722-
722+
723723
[MAGIC, -1.0],
724724
[SQRTHALF-MAGIC45, -SQRTHALF-MAGIC45],
725725
[SQRTHALF, -SQRTHALF],
@@ -832,8 +832,6 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False):
832832
eta1 = np.arctan2(np.sin(theta1), np.cos(theta1))
833833
eta2 = np.arctan2(np.sin(theta2), np.cos(theta2))
834834
eta2 -= twopi * np.floor((eta2 - eta1) / twopi)
835-
if (theta2 - theta1 > np.pi) and (eta2 - eta1 < np.pi):
836-
eta2 += twopi
837835

838836
# number of curve segments to make
839837
if n is None:
Binary file not shown.
23.6 KB
Loading
Lines changed: 378 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)