Pandas 条形图边缘到破折号

Sco*_*ieB 5 matplotlib pandas

我有一个条形图,我可以成功地将填充颜色变为透明。现在我想将边缘更改为虚线,而不是实线。

df.plot(kind='barh', x='state', y='population', color=[1,0,0,0], edgecolor='blue', width=0.5)

我试过了edgestyle,我试过了,style='-'而且'--'

虚线仅适用于线图吗?

Kev*_*ang 4

df.plot(kind='barh', x='state', y='population', color=[1,0,0,0], edgecolor='blue', width=0.5, linestyle="--")