Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 pyplot.bar 但我绘制的点太多以至于条的颜色总是黑色。这是因为条形的边框是黑色的,而且它们太多了,它们都被挤在一起,所以你看到的只是边框(黑色)。有没有办法删除条形边框,以便我可以看到预期的颜色?
设置edgecolor为"none":bar(..., edgecolor = "none")
edgecolor
"none"
bar(..., edgecolor = "none")
另一种选择是设置edgecolor为您调用中的预期颜色bar:
bar
# If your intended color is blue, this will work: bar(. . . , edgecolor='b')