How to update a histogram when a slider is used?,plt.show()