matplotlib bar graph black - how do I remove bar borders

user1893354 picture user1893354 · Apr 9, 2013 · Viewed 59.8k times · Source

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?

Answer

Robbert picture Robbert · Apr 9, 2013

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