I want to compute the probability density (take the distribution) of a line. I first get the histogram plot of the line by using np.polyfit with degree 1 (for the linear fit