On Tue, Apr 10, 2012 at 12:43 PM, wiswit <chaoyue...@gmail.com> wrote:

>
> Dear all,
>
> I found that the numpoints in legend function for scatter plot is not
> working?
>
> import matplotlib as mat
> import matplotlib.pyplot as plt
> In [59]: mat.__version__
> Out[59]: '1.1.0'
>
> #ordinary plot working
> fig=plt.figure()
> ax=fig.add_subplot(111)
> ax.plot(np.arange(10),'ro',label='tst')
> ax.legend(numpoints=1)
> plt.show()
>
> #but not scatter plot
> fig=plt.figure()
> ax=fig.add_subplot(111)
> ax.scatter(np.arange(10),np.arange(10),marker='o',label='tst')
> ax.legend(numpoints=1)
> plt.show()
>
> cheers,
>
> chao
>
>
Confirmed... this is still broken.

Ben Root
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to