Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d7ee27

Browse files
committed
Merge pull request #4983 from ericmjl/mep12-hist2d_demo.py
MEP12 on hist2d_demo.py
2 parents c29c773 + 63a7f2e commit 9d7ee27

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from pylab import *
2-
x = randn(1000)
3-
y = randn(1000) + 5
1+
import matplotlib.pyplot as plt
2+
import numpy as np
3+
x = np.random.randn(1000)
4+
y = np.random.randn(1000) + 5
45

56
# normal distribution center at x=0 and y=5
6-
hist2d(x, y, bins=40)
7-
show()
7+
plt.hist2d(x, y, bins=40)
8+
plt.show()

0 commit comments

Comments
 (0)