|
From: Benjamin R. <ben...@ou...> - 2012-09-09 19:29:13
|
On Tue, Apr 10, 2012 at 12:43 PM, wiswit <cha...@gm...> 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 |