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

Skip to content

Commit 4a79c3d

Browse files
committed
[2982047] start default collection label with underscore, like line label
svn path=/trunk/matplotlib/; revision=8399
1 parent 086e2fa commit 4a79c3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ def add_collection(self, collection, autolim=True):
13981398
'''
13991399
label = collection.get_label()
14001400
if not label:
1401-
collection.set_label('collection%d'%len(self.collections))
1401+
collection.set_label('_collection%d'%len(self.collections))
14021402
self.collections.append(collection)
14031403
self._set_artist_props(collection)
14041404

0 commit comments

Comments
 (0)