From: John H. <jdh...@ac...> - 2006-09-22 13:48:03
|
>>>>> "fred" == fred <fr...@gm...> 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 |