Matplotlib incorrect display of data on the y-axis. Bars are displayed from coordinate 0.5 to 1.0, but this is not what I would like to see. Coordinates 1.0 are not in the data (height and bottom)
Code for example:
fig, ax = plt.subplots()
x = [0, 1, 2, 3, 4]
height = [0.5047, 0.4999, 0.4985, 0.4999, 0.4987]
bottom = [0.5002, 0.4969, 0.4956, 0.4969, 0.4967]
ax.set_ylim(0, 2)
ax.bar(x=x, height=height, width=0.2, bottom=bottom)
plt.show()