Your code works fine for me with mpl 0.98.5.2.
What version of mpl are you using?

print matplotlib.__version__

-JJ



On Thu, Mar 5, 2009 at 12:03 PM, Erik Granstedt <egranst...@gmail.com> wrote:
> Hello,
>
> I found an issue in working with subplots and using figlegend: it
> doesn't display markers.  This code illustrates the problem:
>
> x=r_[0.:11.:1.]
> y=x**1.5
> figure()
> subplot(211)
> line=plot(x,y,'sb-.')
> figlegend( (line,),('y',),'right' )
>
> Supplying the "numpoints" keyword to figlegend doesn't seem to have
> any effect, ie. I get the same results with:
> figlegend( (line,),('y',),'right',numpoints=10 )
>
> Is this the intended behavior?  Is there a good way to display the markers?
>
> I did find a workaround, but I don't think this is the ideal method:
> x=r_[0.:11.:1.]
> y=x**1.5
> figure()
> subplot(111)
> line=plot(x,y,'sb-.')
> figlegend( (line,),('y',),'right' )
> subplot(211)
> line=plot(x,y,'sb-.')
>
> Thanks,
>
> -Erik
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to