Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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)