Seaborn 柱状图设置柱子宽度
可以使用参数'width'来设置柱子宽度,比如:
sns.barplot(x=repurchase_rate.index, y=repurchase_rate['rate'], bin=5, width=0.5)
这里将柱子宽度设置为0.5。可以根据需要调整柱子宽度。
原文地址: https://www.cveoy.top/t/topic/neJn 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
可以使用参数'width'来设置柱子宽度,比如:
sns.barplot(x=repurchase_rate.index, y=repurchase_rate['rate'], bin=5, width=0.5)
这里将柱子宽度设置为0.5。可以根据需要调整柱子宽度。
原文地址: https://www.cveoy.top/t/topic/neJn 著作权归作者所有。请勿转载和采集!