Pandas scatter charts: how to make unfilled characters

I am trying to build empty characters, but the argument matplotlib facecolors = 'none' just changes the fill color. Notice I'm using matplotlib style 'ggplot'.

Source code snippet with filled characters:

ax=df.plot(kind='scatter', x='clay', y='vf1',xlim=[0,0.6],ylim=[0,6.0e-06],
            color='DarkBlue', s=40, label='u*=1, w=0') 

original, filled outlines

Now try to use facecolors = 'none' (and set edgecolors for the color I want)

ax=df.plot(kind='scatter', x='clay', y='vf1',xlim=[0,0.6],ylim=[0,6.0e-06],
            facecolors='none', edgecolors='DarkBlue', s=40, label='u*=1, w=0')     

marking outlines

It turns out that no matter what color I put in for “facecolors,” the shading is always light blue. Does anyone know what is going on here and how can I get an unencrypted character?

*** UPDATE **** After the answer from BrenBarn below, I have the following, which is exactly what I wanted.

ax=df.plot(kind='scatter', x='clay', y='vf1',xlim=[0,0.6],ylim=[0,6.0e-06],
            c='none', edgecolor='DarkBlue', s=40, label='u*=1, w=0')

perfect!

+4
1

, matplotlib, pandas ( matplotlib ). pandas ' c . c='none' facecolor='none'.

+4

All Articles