我有一个条形图,我可以成功地将填充颜色变为透明。现在,我想将边缘更改为虚线,而不是实线。
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] 删除。
我来说两句