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

Skip to content

Commit 3b9a916

Browse files
authored
Merge pull request #8094 from patniharshit/keepmiddle
Remove example of matrix of size (12, 12) and (64, 64)
2 parents 6450ce2 + f944078 commit 3b9a916

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

examples/pylab_examples/matshow.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,7 @@ def samplemat(dims):
1010
aa[i, i] = i
1111
return aa
1212

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)
13+
# Display matrix
14+
plt.matshow(samplemat((15, 35)))
2515

2616
plt.show()

0 commit comments

Comments
 (0)