-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove example of matrix of size (12, 12) and (64, 64) #8094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -10,17 +10,7 @@ def samplemat(dims): | |||
aa[i, i] = i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be rewritten as np.fill_diagonal(aa, range(min(dims)))
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the current version is much more readable, which is important for an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
examples/pylab_examples/matshow.py
Outdated
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two spaces, and trailing whitespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I remove spaces ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one before "matrix" and whatever is after.
@anntzer I find your review confusing, you asked for changes with the comment 'LGTM' ;) |
I noticed the spaces issue afterwards and forgot to edit the main message :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Remove example of matrix of size (12, 12) and (64, 64)
Backported to 2.0.x via 35996ce |
refs #7956 Only keep middle plots
Remove first and third example and keep second one.