Skip to content

Commit 63a7f2e

Browse files
committed
MEP12 on hist2d_demo.py
1 parent 030cd4b commit 63a7f2e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
+6-5
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)