markeredgecolor (mec) in the plot function not working?

Dear all,
I use matplotlib 1.1.0.
import matplotlib.pyplot as plt
plt.plot(np.arange(10),‘ro’,mec=‘none’)
when I use plt.show(),
there is only blank frame with axis not no points.
but plt.plot(np.arange(10),‘ro’) will give good plot with read filled circles and black edges.
plt.scatter(np.arange(10),np.arange(10),c=‘r’,marker=‘o’,edgecolor=‘none’) is working fine.
but I really think plt.plot is a very good and easy function if you don’t make complex scatter points. and the circles look much nicer than that produced by plt.scatter (thought I don’t know why
as they use the same symble…)
does anyone else have found the same ?
thanks to all,
Chao

···

View this message in context: markeredgecolor (mec) in the plot function not working?

Sent from the matplotlib - users mailing list archive at Nabble.com.

This works for me with GTKAgg backend. If this is still a problem for you, which backend are you using?

Ben Root

···

On Tue, Apr 10, 2012 at 12:22 PM, wiswit <chaoyuejoy@…287…> wrote:

Dear all,
I use matplotlib 1.1.0.
import matplotlib.pyplot as plt
plt.plot(np.arange(10),‘ro’,mec=‘none’)
when I use plt.show(),
there is only blank frame with axis not no points.
but plt.plot(np.arange(10),‘ro’) will give good plot with read filled circles and black edges.
plt.scatter(np.arange(10),np.arange(10),c=‘r’,marker=‘o’,edgecolor=‘none’) is working fine.
but I really think plt.plot is a very good and easy function if you don’t make complex scatter points. and the circles look much nicer than that produced by plt.scatter (thought I don’t know why
as they use the same symble…)
does anyone else have found the same ?
thanks to all,
Chao

Dear Ben,

I tried again with dev version and GTKAgg backend it works.

In [3]: mat.version
Out[3]: ‘1.2.x’

In [4]: mat.get_backend()
Out[4]: ‘GTKAgg’

Chao

···

On Sun, Sep 9, 2012 at 9:32 PM, Benjamin Root <ben.root@…1304…> wrote:

On Tue, Apr 10, 2012 at 12:22 PM, wiswit <chaoyuejoy@…287…> wrote:

Dear all,
I use matplotlib 1.1.0.
import matplotlib.pyplot as plt
plt.plot(np.arange(10),‘ro’,mec=‘none’)
when I use plt.show(),
there is only blank frame with axis not no points.
but plt.plot(np.arange(10),‘ro’) will give good plot with read filled circles and black edges.
plt.scatter(np.arange(10),np.arange(10),c=‘r’,marker=‘o’,edgecolor=‘none’) is working fine.
but I really think plt.plot is a very good and easy function if you don’t make complex scatter points. and the circles look much nicer than that produced by plt.scatter (thought I don’t know why
as they use the same symble…)
does anyone else have found the same ?
thanks to all,
Chao

This works for me with GTKAgg backend. If this is still a problem for you, which backend are you using?

Ben Root


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