0

How to se BG color over an Histogram graph in matplotlb Need to add a background color to this graph enter image description here

import matplotlib.pyplot as plt
x = df['WASHING']
n, bins, patches = plt.hist(x)


plt.setp(patches[0], 'facecolor', 'g')
plt.setp(patches[5], 'facecolor', 'blue')
plt.setp(patches[9], 'facecolor', 'yellow')


plt.title('CRUST')



plt.show()

0 Answers0