Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95b85ae

Browse files
committed
MNT: apply no-op exit for non-visible artists
1 parentd1e2a20 commit95b85ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/matplotlib/patches.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,8 @@ def draw(self, renderer):
16471647
"""
16481648
ifnothasattr(self,'axes'):
16491649
raiseRuntimeError('Arcs can only be used in Axes instances')
1650+
ifnotself.get_visible():
1651+
return
16501652

16511653
self._recompute_transform()
16521654

@@ -1661,7 +1663,6 @@ def theta_stretch(theta, scale):
16611663
y=np.sin(theta)
16621664
stheta=np.rad2deg(np.arctan2(scale*y,x))
16631665
# arctan2 has the range [-pi, pi], we expect [0, 2*pi]
1664-
16651666
return (stheta+360)%360
16661667

16671668
theta1=self.theta1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp