Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antiface/2d28f62c691e504698ee698160ff1852 to your computer and use it in GitHub Desktop.
Save antiface/2d28f62c691e504698ee698160ff1852 to your computer and use it in GitHub Desktop.
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment