SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Alejandro W. <ale...@gm...> - 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.
From: Manuel M. <mm...@as...> - 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Alejandro W. <ale...@gm...> - 2008年12月01日 15:11:12
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.
From: Manuel M. <mm...@as...> - 2008年12月01日 15:38:26
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
From: Manuel M. <mm...@as...> - 2008年12月01日 16:26:16
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /