Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 35996ce

Browse filesBrowse 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
Copy full SHA for 35996ce

File tree

Expand file treeCollapse file tree

1 file changed

+2
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-7
lines changed

‎examples/pylab_examples/matshow.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/matshow.py
+2-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.