From: Chao Y. <cha...@gm...> - 2011-10-15 14:36:33
|
cool. it's done!! Thanks!!! Chao 2011/10/15 Tony Yu <ts...@gm...> > > > On Sat, Oct 15, 2011 at 8:55 AM, Chao YUE <cha...@gm...> wrote: > >> Dear all, >> >> how can I make a scatter plot without edgecolor? >> >> import matplotlib.pyplot as plt >> In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None) >> Out[110]: <matplotlib.collections.CircleCollection object at 0x5cf16d0> >> >> in this case I can use edgecolor='w' to solve it, but when points overlap, >> this does not work anymore. >> Any help will be appreciated. Thanks. >> > > Hi Chao, > > I think what you want is 'none': > > plt.scatter(np.arange(10),np.arange(10,20), color='y',edgecolor='none') > > It's confusing, but None is used to let matplotlib auto-select the color, > while 'none' is used to turn off edge coloring. > > Best, > -Tony > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ |