From: wiswit <cha...@gm...> - 2012-04-10 16:43:19
|
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 -- View this message in context: http://old.nabble.com/numpoints-in-legend%28%29-function-for-scatter-plot-is-not-working-in-matplotlib-1.1.0--tp33662785p33662785.html Sent from the matplotlib - users mailing list archive at Nabble.com. |