import pandas as pd import numpy as np import matplotlib.pyplot as plt
plotting histogram with random numbers
x=20 * np.random.randn(1020)
plt.hist(x,90, range= (-50,50),alpha=1,histtype='stepfilled',align='mid', color='deepskyblue',label='Test_Data',edgecolor='black');histogram
plt.legend()legend plt.title("Random data Histogram")title plt.show() show
Aucun commentaire:
Enregistrer un commentaire