I try running the following code
import numpy as np
import matplotlib.pyplot as plt
x = np.random.randn(1000)
plt.hist(x, bins=50, density=True)
plt.show()
And I get the following error message:
AttributeError: Unknown property density
What's wrong?
densityargument for hist