熊猫酒吧情节边缘破折号

时间:2017-01-24 19:11:36

标签: pandas matplotlib

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

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

我已尝试edgestyle,我已尝试style='-''--'

划线仅适用于线图吗?

1 个答案:

答案 0 :(得分:2)

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