熊猫条形图的边线到虚线

斯科蒂

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

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

我试过edgestyle,我试过style='-''--'

破折号仅适用于折线图吗?

王凯文|

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章