I'm tyring to compare a normal distribution to a histogram of actual data. I'm plotting the two with the following Python code:
plt.hist(adjustedVar.iloc[:,8], bins=50, density=True)
xmin, xmax = plt.xlim()
x = np.linspace(xmin, xmax, 100)
y = norm.pdf(x, meanAdj, stddevAdj)
line = plt.plot(x, y)
plt.show(line)
Now what I want to do is annotate with a line showing where the 1-tail 99% statistical significance is on the right of the line plot.
Can anyone advise on how to do this on the same graph please? I've been trying the annotate function but not having luck. Need a pointer in the right direction.