I have a list of 100000 values, all are around 299800 as shown below.
values = [299850.3 299856.4 299855.9 ... 299843.7 299847.2 299860.9]
When I plot a Probability Density Function (PDF) of these values using matplotlib.pyplot.hist
, I am getting the plot whose X-axis and Y-Axis values are confusing. I expect the X-axis values to be binned around 299800 and Y-axis values be the probability of those binned values happening. How to interpret this graph values correctly, appreciate any comments.
plt.hist(values,density=True, bins=30)
plt.xlabel("Values")
plt.ylabel('PDF')
plt.show()