Я рисую гистограмму экспоненциального распределения следующим образом. Как я могу добавить подходящую линию в верхней части этой гистограммы.
from scipy.stats import expon
import matplotlib.pyplot as plt
data_expon = expon.rvs(size=1000,scale=1,loc=0)
# the histogram of the data
plt.hist(data_expon, 100, density=True, facecolor='r', alpha=0.75)
plt.xlabel('exponential')
plt.ylabel('PDF')
plt.grid(True)
plt.show()
