Skip to content

Instantly share code, notes, and snippets.

@varghesejohn
Created November 27, 2018 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save varghesejohn/5b578e61f020ff98af564f7241521aaf to your computer and use it in GitHub Desktop.
Save varghesejohn/5b578e61f020ff98af564f7241521aaf 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