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

Skip to content

Improve hat graph example #18857

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 1 commit into from
Nov 14, 2020
Merged

Improve hat graph example #18857

merged 1 commit into from
Nov 14, 2020

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Nov 1, 2020

PR Summary

Extract a hat_graph() function, that can be readily copy/pasted by end-users.

It would also be good to have some other data semantics. Hat graphs are designed to compare datasets with respect to a reference dataset. For players A/B, it seems a bit arbitrary that Player A is considered the reference player. Unfortunately, I currently cannot think of a good domain/data semantics. Suggestions welcome.

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

This looks good. Might try and fix the opening couple of sentences to have better grammar...

@@ -10,42 +10,65 @@
import matplotlib
import numpy as np
import matplotlib.pyplot as plt

Copy link
Member

Choose a reason for hiding this comment

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

Can you fix the comment above while we are here? Refer ... to: "For discussion of hat graphs, see https://doi.org/10.1186/s41235-019-0182-3"

Copy link
Member

Choose a reason for hiding this comment

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

Please feel free to self merge either way

Copy link
Member Author

Choose a reason for hiding this comment

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

I've inlined the link into the first sentence by linking "hat graph" there.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

I seem to have forgotten to post this.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

Can merge if CI passes.

@timhoffm timhoffm merged commit 02746fa into matplotlib:master Nov 14, 2020
@timhoffm timhoffm deleted the hat-graph branch November 14, 2020 02:53
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.

3 participants