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

Skip to content

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

Merged
merged 2 commits into from
Feb 18, 2017
Merged

Remove example of matrix of size (12, 12) and (64, 64) #8094

merged 2 commits into from
Feb 18, 2017

Conversation

patniharshit
Copy link
Contributor

@patniharshit patniharshit commented Feb 17, 2017

refs #7956 Only keep middle plots
Remove first and third example and keep second one.

@@ -10,17 +10,7 @@ def samplemat(dims):
aa[i, i] = i
Copy link
Contributor

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))).

Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

# 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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I remove spaces ?

Copy link
Contributor

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.

@tacaswell
Copy link
Member

@anntzer I find your review confusing, you asked for changes with the comment 'LGTM' ;)

@anntzer
Copy link
Contributor

anntzer commented Feb 18, 2017

I noticed the spaces issue afterwards and forgot to edit the main message :-)

@anntzer anntzer changed the title Remove example of matrix of size (12, 12) and (64, 64) [MRG+1] Remove example of matrix of size (12, 12) and (64, 64) Feb 18, 2017
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dstansby dstansby changed the title [MRG+1] Remove example of matrix of size (12, 12) and (64, 64) Remove example of matrix of size (12, 12) and (64, 64) Feb 18, 2017
@dstansby dstansby merged commit 3b9a916 into matplotlib:master Feb 18, 2017
@dstansby dstansby added this to the 2.0.1 (next bug fix release) milestone Feb 18, 2017
@anntzer anntzer mentioned this pull request Feb 18, 2017
16 tasks
dstansby added a commit that referenced this pull request Feb 18, 2017
Remove example of matrix of size (12, 12) and (64, 64)
@dstansby
Copy link
Member

Backported to 2.0.x via 35996ce

@patniharshit patniharshit deleted the keepmiddle branch February 19, 2017 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants