-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Increase size of legend in Legend guide example #27764
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
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.
Can you add a comment or half a sentence on what handle length does?
Is that enough?
I think I'm confused on what handlelength does vs numpoints here
Numpoints
adds the 4 dots to the legend entry and handlelength
just increases the length of the handles.
The docs say "Line 1" now has 4 marker points, where "Line 2" has 2 (the default).
(It's really 1 though 🤔)
Should this also close issue #8789?
PR summary
While I was looking at issue #8789, I saw that the legend in the example under https://matplotlib.org/devdocs/users/explain/axes/legend_guide.html#legend-handlers was pretty cramped and could look better with an increase in the length of the handles.
Before:
before
After:
after
This also looks like the right spot to document this feature (which is what that issue is about). More could be said about it, maybe with its own example and heading.
PR checklist