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

Skip to content

Commit 21ce57f

Browse files
committed
Merged revisions 6856 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r6856 | jdh2358 | 2009-01-30 08:09:39 -0800 (Fri, 30 Jan 2009) | 1 line conditionally set default clippath ........ svn path=/trunk/matplotlib/; revision=6857
1 parent c15aba0 commit 21ce57f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,9 @@ def add_collection(self, collection, autolim=True):
13261326
collection.set_label('collection%d'%len(self.collections))
13271327
self.collections.append(collection)
13281328
self._set_artist_props(collection)
1329-
collection.set_clip_path(self.patch)
1329+
1330+
if collection.get_clip_path() is None:
1331+
collection.set_clip_path(self.patch)
13301332
if autolim:
13311333
if collection._paths and len(collection._paths):
13321334
self.update_datalim(collection.get_datalim(self.transData))
@@ -1339,7 +1341,8 @@ def add_line(self, line):
13391341
lines
13401342
'''
13411343
self._set_artist_props(line)
1342-
line.set_clip_path(self.patch)
1344+
if line.get_clip_path() is None:
1345+
line.set_clip_path(self.patch)
13431346

13441347
self._update_line_limits(line)
13451348
if not line.get_label():
@@ -1364,7 +1367,8 @@ def add_patch(self, p):
13641367
"""
13651368

13661369
self._set_artist_props(p)
1367-
p.set_clip_path(self.patch)
1370+
if p.get_clip_path() is None:
1371+
p.set_clip_path(self.patch)
13681372
self._update_patch_limits(p)
13691373
self.patches.append(p)
13701374
p._remove_method = lambda h: self.patches.remove(h)

0 commit comments

Comments
 (0)