We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030cd4b commit 63a7f2eCopy full SHA for 63a7f2e
examples/pylab_examples/hist2d_demo.py
@@ -1,7 +1,8 @@
1
-from pylab import *
2
-x = randn(1000)
3
-y = randn(1000) + 5
+import matplotlib.pyplot as plt
+import numpy as np
+x = np.random.randn(1000)
4
+y = np.random.randn(1000) + 5
5
6
# normal distribution center at x=0 and y=5
-hist2d(x, y, bins=40)
7
-show()
+plt.hist2d(x, y, bins=40)
8
+plt.show()
0 commit comments