use*_*354 61 python graph border matplotlib
我正在使用pyplot.bar,但我正在绘制很多点,以至于条形图的颜色始终是黑色的.这是因为酒吧的边框是黑色的,而且它们中的很多都被挤压在一起,所以你看到的就是边框(黑色).有没有办法删除条形边框,以便我可以看到预期的颜色?
dbl*_*iss 15
另一个选项是设置edgecolor
为您的呼叫中的预期颜色bar
:
# If your intended color is blue, this will work:
bar(. . . , edgecolor='b')
Run Code Online (Sandbox Code Playgroud)