From 53c55607cf2a6e2c5df8c2d0502c1b268a4642b3 Mon Sep 17 00:00:00 2001 From: patniharshit Date: Fri, 17 Feb 2017 21:54:40 +0530 Subject: [PATCH 1/2] Remove example of matrix of size (12, 12) and (64, 64) --- examples/pylab_examples/matshow.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/examples/pylab_examples/matshow.py b/examples/pylab_examples/matshow.py index 2db98c204444..f7c2706b146b 100755 --- a/examples/pylab_examples/matshow.py +++ b/examples/pylab_examples/matshow.py @@ -10,17 +10,7 @@ def samplemat(dims): aa[i, i] = i return aa -# Display 2 matrices of different sizes -dimlist = [(12, 12), (15, 35)] -for d in dimlist: - plt.matshow(samplemat(d)) - -# Fixing random state for reproducibility -np.random.seed(19680801) - - -# Display a random matrix with a specified figure number and a grayscale -# colormap -plt.matshow(np.random.rand(64, 64), fignum=100, cmap=plt.cm.gray) +# Display matrix +plt.matshow(samplemat((15, 35))) plt.show() From f944078863d09a321ce742a299245dbc538ae5dd Mon Sep 17 00:00:00 2001 From: patniharshit Date: Sat, 18 Feb 2017 16:43:18 +0530 Subject: [PATCH 2/2] remove spaces in comment --- examples/pylab_examples/matshow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pylab_examples/matshow.py b/examples/pylab_examples/matshow.py index f7c2706b146b..8d441461158d 100755 --- a/examples/pylab_examples/matshow.py +++ b/examples/pylab_examples/matshow.py @@ -10,7 +10,7 @@ def samplemat(dims): aa[i, i] = i return aa -# Display matrix +# Display matrix plt.matshow(samplemat((15, 35))) plt.show()