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.
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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <mm...@as...> 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.
Alejandro Weinstein wrote: > On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <mm...@as...> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Manuel Metz wrote: > Alejandro Weinstein wrote: >> On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <mm...@as...> 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 >> Mat...@li... >> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users