Skip to content

Commit 53c5560

Browse files
committed
Remove example of matrix of size (12, 12) and (64, 64)
1 parent 5e825bd commit 53c5560

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

examples/pylab_examples/matshow.py

+2-12
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)