

# https://www.globalsino.com/ICs/
# Pass three lists to plot a function with numpy and matplotlib.pyplot

import matplotlib.pyplot as plt
import numpy as np

x = np.arange(1, 10, 1) 
y1 = [9, 20, 41, 33, 21, 34, 52, 63, 77]
y2 = [20, 30, 21, 43, 31, 44, 62, 53, 75]


plt.xlabel('Population')
plt.ylabel('Probability')
plt.title('Histogram', fontsize = 25)
plt.text(60, 18, r'$\mu=100,\ \sigma=15$')
plt.plot(x, y1, color = "g", linestyle = "dashed", marker = 'o', label = "y1")
plt.plot(x, y2, color = "r", linestyle = "dashed", marker = 'o', label = "y2")
plt.grid()
plt.legend()
plt.show()
