Issue with dashed line inside Matplot histogram

Viewed 31

I was trying to plot a histogram with a custom dashed linestyle using the following:

plt.hist(diameters, bins, density=True,
         facecolor="deepskyblue", edgecolor="black", linestyle=(0,(4,4)))

This yields the following image: enter image description here

As you can see, along the inside edges of each rectance, the lines don't match regarding their length/and or starting position. I would be very grateful for any advice on how to fix this issue.

0 Answers
Related