Skip to content

Instantly share code, notes, and snippets.

@varghesejohn
varghesejohn / matplotlib_randnumber plot.py
Created November 27, 2018 12:30
Matplotlib - simple data viisualization using python
import matplotlib.pyplot as plt
import numpy as np
x=np.random.randn(10000)
plt.hist(x,100)
plt.title(r'Normal Distribution with $\mu = 0 and \sigma = 1$ ')
plt.savefig('matplotlib_histogram.png')
plt.show()