## [Matplotlib-users] some curves not legended

 [Matplotlib-users] some curves not legended From: fred - 2006-09-22 10:49:20 ```Hi the list, Is it possible to have some curves not legended ? A sample example is better : http://fredantispam.free.fr/foo.png I whish the pointed curves to be not displayed in the legend box. How can I do this ? Cheers, --=20 =AB Python, c'est un peu comme la ba=EFonnette en 14, faut toujours sorti= r avec, et pas h=E9siter d'en mettre un coup en cas de besoin. =BB J.-Ph. D. ```

 [Matplotlib-users] some curves not legended From: fred - 2006-09-22 10:49:20 ```Hi the list, Is it possible to have some curves not legended ? A sample example is better : http://fredantispam.free.fr/foo.png I whish the pointed curves to be not displayed in the legend box. How can I do this ? Cheers, --=20 =AB Python, c'est un peu comme la ba=EFonnette en 14, faut toujours sorti= r avec, et pas h=E9siter d'en mettre un coup en cas de besoin. =BB J.-Ph. D. ```
 Re: [Matplotlib-users] some curves not legended From: John Hunter - 2006-09-22 13:48:03 ```>>>>> "fred" == fred writes: fred> Hi the list, Is it possible to have some curves not legended fred> ? ax.plot(x,y,label='_nolegend_') Help on function legend in module matplotlib.pylab: legend(*args, **kwargs) LEGEND(*args, **kwargs) Place a legend on the current axes at location loc. Labels are a sequence of strings and loc can be a string or an integer specifying the legend location USAGE: Make a legend with existing lines >>> legend() legend by itself will try and build a legend using the label property of the lines/patches/collections. You can set the label of a line by doing plot(x, y, label='my data') or line.set_label('mydata'). If label is set to '_nolegend_', the item will not be shown in legend. JDH ```