import matplotlib.pyplot as plt x = np.random.randint(low=1, high=100, size=1000) y = np.random.randint(low=10, high=110, size=1000) plt.hist([x,y], bins=10, label=['x','y']) plt.legend() plt.show()
No comments:
Post a Comment