We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1e2a20 commit 95b85aeCopy full SHA for 95b85ae
lib/matplotlib/patches.py
@@ -1647,6 +1647,8 @@ def draw(self, renderer):
1647
"""
1648
if not hasattr(self, 'axes'):
1649
raise RuntimeError('Arcs can only be used in Axes instances')
1650
+ if not self.get_visible():
1651
+ return
1652
1653
self._recompute_transform()
1654
@@ -1661,7 +1663,6 @@ def theta_stretch(theta, scale):
1661
1663
y = np.sin(theta)
1662
1664
stheta = np.rad2deg(np.arctan2(scale * y, x))
1665
# arctan2 has the range [-pi, pi], we expect [0, 2*pi]
-
1666
return (stheta + 360) % 360
1667
1668
theta1 = self.theta1
0 commit comments