Skip to content

Commit 90791a7

Browse files
committed
FIX
1 parent e050c46 commit 90791a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/path.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,6 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False, wrap=True):
989989
<https://web.archive.org/web/20190318044212/http://www.spaceroots.org/documents/ellipse/index.html>`_.
990990
"""
991991

992-
if theta1 > theta2:
993-
theta1, theta2 = theta2, theta1
994992
eta1 = theta1
995993
if wrap:
996994
# Wrap theta2 to 0-360 degrees from theta1.
@@ -999,11 +997,11 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False, wrap=True):
999997
# errors, but don't try to expand existing 0 range.
1000998
if theta2 != theta1 and eta2 <= eta1:
1001999
eta2 += 360
1002-
print('Added')
10031000
print('Eta1, Eta2', eta1, eta2)
10041001
else:
10051002
eta2 = theta2
10061003
eta1, eta2 = np.deg2rad([eta1, eta2])
1004+
10071005
# number of curve segments to make
10081006
if n is None:
10091007
if np.abs(eta2 - eta1) <= 2 * np.pi + 1e-12:

0 commit comments

Comments
 (0)