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

···


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


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 ?

Confirmed with git master. This is a major bug.

Eric

···

On 11/24/2011 07:04 AM, Chao YUE wrote:

thanks to all,

Chao

--
***********************************************************************************
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
************************************************************************************

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hmmm, the bug that I once reported before about the errorbar plots having black edges seems to be back for me as well… I wonder if this is related?

Ben Root

···

On Thursday, November 24, 2011, Eric Firing <efiring@…202…> wrote:

On 11/24/2011 07:04 AM, Chao YUE 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 ?

Confirmed with git master. This is a major bug.

Eric

Looks like an alpha-handling bug. I think the mec='none' is setting edgecolor alpha to zero, which is setting the gc alpha to zero, which is clobbering the rgbFace.

Eric

···

On 11/24/2011 08:13 AM, Benjamin Root wrote:

On Thursday, November 24, 2011, Eric Firing <efiring@…202… > <mailto:efiring@…202…>> wrote:
> On 11/24/2011 07:04 AM, Chao YUE 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 ?
>
> Confirmed with git master. This is a major bug.
>
> Eric
>

Hmmm, the bug that I once reported before about the errorbar plots
having black edges seems to be back for me as well... I wonder if this
is related?

Ben Root

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 ?

See https://github.com/matplotlib/matplotlib/pull/598
for a proposed quick fix.

Eric

···

On 11/24/2011 07:04 AM, Chao YUE wrote:

thanks to all,

Chao

--
***********************************************************************************
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
************************************************************************************

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users