|
From: Benjamin R. <ben...@ou...> - 2013-01-22 21:20:39
|
On Tue, Jan 22, 2013 at 1:57 PM, David Erickson <hal...@gm...>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 Cheers! Ben Root |