Skip to content

Commit

Permalink
Merge pull request #4983 from ericmjl/mep12-hist2d_demo.py
Browse files Browse the repository at this point in the history
MEP12 on hist2d_demo.py
  • Loading branch information
WeatherGod committed Aug 24, 2015
2 parents c29c773 + 63a7f2e commit 9d7ee27
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/pylab_examples/hist2d_demo.py
@@ -1,7 +1,8 @@
from pylab import *
x = randn(1000)
y = randn(1000) + 5
import matplotlib.pyplot as plt
import numpy as np
x = np.random.randn(1000)
y = np.random.randn(1000) + 5

# normal distribution center at x=0 and y=5
hist2d(x, y, bins=40)
show()
plt.hist2d(x, y, bins=40)
plt.show()

0 comments on commit 9d7ee27

Please sign in to comment.