## Re: [Matplotlib-users] Make markers in legend to appear only once

 Re: [Matplotlib-users] Make markers in legend to appear only once From: Alejandro Weinstein - 2008-12-01 15:11:12 ```On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz wrote: > You can use the keyword "numpoints" in the legend method: Thank you! It did the trick. Now how you conclude that from the documentation is a mystery: >From the docs: " numpoints: integer The number of points in the legend line, default is 4" Regards, Alejandro. ```

 [Matplotlib-users] Make markers in legend to appear only once From: Alejandro Weinstein - 2008-11-30 23:53:14 ```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" ? Regards, Alejandro. ```
 Re: [Matplotlib-users] Make markers in legend to appear only once From: Manuel Metz - 2008-12-01 14:14:09 ```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@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ```
 Re: [Matplotlib-users] Make markers in legend to appear only once From: Alejandro Weinstein - 2008-12-01 15:11:12 ```On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz wrote: > You can use the keyword "numpoints" in the legend method: Thank you! It did the trick. Now how you conclude that from the documentation is a mystery: >From the docs: " numpoints: integer The number of points in the legend line, default is 4" Regards, Alejandro. ```
 Re: [Matplotlib-users] Make markers in legend to appear only once From: Manuel Metz - 2008-12-01 15:38:26 ```Alejandro Weinstein wrote: > On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz wrote: >> You can use the keyword "numpoints" in the legend method: > > Thank you! It did the trick. > > Now how you conclude that from the documentation is a mystery: > >>From the docs: > " > numpoints: integer > The number of points in the legend line, default is 4" Ah, that's apparently a bug in the docs, which I've fixed in the sources. > 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@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ```
 Re: [Matplotlib-users] Make markers in legend to appear only once From: Manuel Metz - 2008-12-01 16:26:16 ```Manuel Metz wrote: > Alejandro Weinstein wrote: >> On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz wrote: >>> You can use the keyword "numpoints" in the legend method: >> Thank you! It did the trick. >> >> Now how you conclude that from the documentation is a mystery: >> >> >From the docs: >> " >> numpoints: integer >> The number of points in the legend line, default is 4" > > Ah, that's apparently a bug in the docs, which I've fixed in the sources. I have to correct myself. John Hunter applied a patch which fixed the docs. >> 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@... >> 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@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ```