Alejandro Weinstein wrote: > Hi: > > I am plotting using markers, in a similar way than this example: > > http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html > > As you can see in the example above, the markers in the legend appear > twice: " 'green circle' 'green circle' oscillatory". > > Is it possible to make the markers to appear only once, like " 'green > circle' oscillatory" ?
You can use the keyword "numpoints" in the legend method: legend( (l2, l4), ('oscillatory', 'damped'), 'upper right', shadow=True, numpoints=1) should do the job. mm > Regards, > Alejandro. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users