Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 6450ce2 + f944078 commit 3b9a916Copy full SHA for 3b9a916
1 file changed
examples/pylab_examples/matshow.py
@@ -10,17 +10,7 @@ def samplemat(dims):
10
aa[i, i] = i
11
return aa
12
13
-# Display 2 matrices of different sizes
14
-dimlist = [(12, 12), (15, 35)]
15
-for d in dimlist:
16
- plt.matshow(samplemat(d))
17
-
18
-# Fixing random state for reproducibility
19
-np.random.seed(19680801)
20
21
22
-# Display a random matrix with a specified figure number and a grayscale
23
-# colormap
24
-plt.matshow(np.random.rand(64, 64), fignum=100, cmap=plt.cm.gray)
+# Display matrix
+plt.matshow(samplemat((15, 35)))
25
26
plt.show()
0 commit comments