8000 Do not set clip path in add_artist if it exists · matplotlib/matplotlib@25b9dfc · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 25b9dfc

Browse files
committed
Do not set clip path in add_artist if it exists
1 parent 028f07c commit 25b9dfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,8 @@ def add_artist(self, a):
22242224
self._children.append(a)
22252225
a._remove_method = self._children.remove
22262226
self._set_artist_props(a)
2227-
a.set_clip_path(self.patch)
2227+
if a.get_clip_path() is None:
2228+
a.set_clip_path(self.patch)
22282229
self.stale = True
22292230
return a
22302231

0 commit comments

Comments
 (0)
0