Skip to content

Increase fontsize in inheritance graphs #15391

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
Oct 11, 2019
Merged

Increase fontsize in inheritance graphs #15391

merged 1 commit into from
Oct 11, 2019

Conversation

Psirus
Copy link
Contributor

@Psirus Psirus commented Oct 7, 2019

This closes #15109.

The diagram in question goes from (click on images to see actual size in sphinx, the Github PR view rescales them)
inheritance-baace9733e25a3aea26ce118da06767ea5ea372e
to
inheritance-84ea9a23f67b6f8091bb1887c23eb7780337cb16
which isn't ideal, but the best I achieved given the width constraints.

@jklymak
Copy link
Member

jklymak commented Oct 7, 2019

If the inheritance is direct, any chance we can shorten the collections.PathCollection to c.PathCollection w/o loss of understanding?

@Psirus
Copy link
Contributor Author

Psirus commented Oct 7, 2019

So there is a inheritance_alias option, but I can't get it to work. 🤷‍♂️ Additionally, it would be global, the collections module would be shortened to c in every diagram, not just this one. Currently, this is the only diagram where collections (as a module name) appears.

@jklymak
Copy link
Member

jklymak commented Oct 7, 2019

OK, sorry, didn't realize the diagram came from sphinx and not us...

@jklymak
Copy link
Member

jklymak commented Oct 7, 2019

This seems better, is collections really the worst offender? Did you look at the other places we use inheritance diagrams?

@Psirus
Copy link
Contributor Author

Psirus commented Oct 8, 2019

Yes, I did look at all the inheritance diagrams. collections is the worst offender imho, but there was a big improvement from
inheritance-2670f9102ffacb31874575075e2b9abd67b80a04
to this
inheritance-72fdad6e2fcef7304144a035ceebcc60d0fb7889
as well. There are a couple more examples like this.

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.

👍 this looks like a nice improvement, thanks for submitting a PR!

@jklymak
Copy link
Member

jklymak commented Oct 9, 2019

yes thanks! Looks like the failing test is a flake8 error in conf.py. Please fix before merging....

@dstansby dstansby added this to the v3.2.0 milestone Oct 11, 2019
@dstansby dstansby merged commit 56b98db into matplotlib:master Oct 11, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Oct 11, 2019
timhoffm added a commit that referenced this pull request Oct 11, 2019
…391-on-v3.2.x

Backport PR #15391 on branch v3.2.x (Increase fontsize in inheritance graphs)
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.

matplotlib.collections inheritance diagram small/blurry
3 participants