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

Skip to content

Commit 35996ce

Browse files
committed
Merge pull request #8094 from patniharshit/keepmiddle
Remove example of matrix of size (12, 12) and (64, 64)
1 parent 2558530 commit 35996ce

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/pylab_examples/matshow.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ 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))
1713

18-
# Display a random matrix with a specified figure number and a grayscale
19-
# colormap
20-
plt.matshow(np.random.rand(64, 64), fignum=100, cmap=plt.cm.gray)
14+
# Display matrix
15+
plt.matshow(samplemat((15, 35)))
2116

2217
plt.show()

0 commit comments

Comments
 (0)