Hi, add_line method sets label to something like "_line1" if not set.
def add_line(self, line): if not line.get_label(): line.set_label('_line%d'%len(self.lines)) add_collection sets label to "collection1" if not set. def add_collection(self, collection, autolim=True): label = collection.get_label() if not label: collection.set_label('collection%d'%len(self.collections)) add_patch does nothing. Can someone enlighten me why add_line and add_collection method sets the label? Actually, my issue here is that collections without empty label show up in the legend as "collection1" etc., instead of being ignored. Regards, -JJ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel