Matplotlib bar graph black - how to remove bar borders

I use pyplot.bar, but I draw so many dots that the color of the bars is always black. This is because the borders of the bars are black, and there are so many of them that they all flatten, so all you see is the borders (black). Is there a way to remove the borders of the bar so that I can see the intended color?

+48
python matplotlib graph border
Apr 09 '13 at 14:02
source share
2 answers

Set edgecolor to "none" : bar(..., edgecolor = "none")

+85
Apr 09 '13 at 14:11
source share
β€” -

Another option is to set edgecolor as the intended color when calling bar :

 # If your intended color is blue, this will work: bar(. . . , edgecolor='b') 
+12
Apr 21 '15 at 17:32
source share



All Articles