So far, I am able to generate the basic decimal version as seen below:
The code I used to generate it:
import numpy as np
import matplotlib.pyplot as plt
plt.figure(figsize=(8,4))
x = np.linspace(-20,20,1000)
plt.plot(x,stats.norm.pdf(x,0,5),'r')
plt.plot(x,stats.norm.pdf(x,0,10),'b')
plt.title("Flattening the curve")
plt.savefig("graph.png")
plt.show()
What I want is that x-axis and y-axis begins at 0 and show integers instead of floating values. Something similar to this but as a line graph instead of a histogram:
Any tips on how to do so? Any help would be much appreciated. Thank you for reading!