Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

matplotlib bar graph black - how do I remove bar borders

I'm using pyplot.bar but I'm plotting so many points 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 are all squished together so that all you see is the borders (black). Is there a way to remove the bar borders so that I can see the intended color?

like image 356
user1893354 Avatar asked Apr 09 '13 14:04

user1893354


2 Answers

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

like image 124
Robbert Avatar answered Sep 20 '22 03:09

Robbert


Another option is to set edgecolor to be the intended color in your call to bar:

# If your intended color is blue, this will work: bar(. . . , edgecolor='b') 
like image 27
dbliss Avatar answered Sep 20 '22 03:09

dbliss