I am trying to get a PDF with a smoother outline. Also, the area under the curve must be filled. How can I get the curve of best fit for this?
This is the code I have used.
plt.hist(
data,
range=[0, 60],
bins=60,
density=True,
label="In bulk",
histtype="stepfilled",
alpha=0.5,
)