Skip to content

Commit 5b398e9

Browse files
committed
Merge pull request matplotlib#3298 form mbdoom/arc-bug
BUG : Wedge not honouring specified angular range Fixed minor PEP8 as part of merge
2 parents e1702c7 + ec2aff4 commit 5b398e9

File tree

5 files changed

+409
-2
lines changed

5 files changed

+409
-2
lines changed

lib/matplotlib/path.py

-2
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,6 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False):
841841
eta1 = np.arctan2(np.sin(theta1), np.cos(theta1))
842842
eta2 = np.arctan2(np.sin(theta2), np.cos(theta2))
843843
eta2 -= twopi * np.floor((eta2 - eta1) / twopi)
844-
if (theta2 - theta1 > np.pi) and (eta2 - eta1 < np.pi):
845-
eta2 += twopi
846844

847845
# number of curve segments to make
848846
if n is None:
Binary file not shown.
Loading
Loading

0 commit comments

Comments
 (0)