I have to say I disagree with this "fix". None was a nice, very intuitive way to hide the label. Many Python systems use None in that kind of role and I really doubt anyone is going to use None when they meant "None" so converting it to a string seems like a bad idea.
Ted ________________________________________ From: David Erickson [halcyon1...@gmail.com] Sent: Tuesday, January 22, 2013 4:47 PM To: Benjamin Root Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Hiding labels in a legend? On Tue, Jan 22, 2013 at 1:20 PM, Benjamin Root <ben.r...@ou.edu> wrote: > > > On Tue, Jan 22, 2013 at 1:57 PM, David Erickson <halcyon1...@gmail.com> > wrote: >> >> Hello- >> Prior to version 1.2 of MPL I was able to hide labels for certain >> lines in the legend by setting the label=None when plotting a line, >> however in 1.2 it is now showing the legend entry and visibly printing >> "None". Is there a workaround to hide the label? >> >> Thanks, >> David >> > > I think you want "_nolegend_" for those labels. The hiding of the labels > for None was an undocumented feature, I think, and has been "fixed". > > http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.legend > Perfect, thanks Ben! -David ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users