I'm trying to plot a histogram using Pycharm, but I get an error message: ValueError: bins must increase monotonically, when an array
import matplotlib.pyplot as plt
x = [19.5, 23.5, 31.5, 35.5, 39.5, 39.5, 43.5, 47.5]
y = [58.1, 23.3, 9.3, 4.7, 2.3, 0.0, 2.3, 0.0]
plt.hist(x, y)
plt.show()