Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Implemented Issue #3225. Added a uniform_size parameter to legend.#4247
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This seems a bit heavy handed. |
@@ -185,6 +185,7 @@ def __init__(self, parent, handles, labels, | |||
bbox_transform=None, # transform for the bbox | |||
frameon=None, # draw frame | |||
handler_map=None, | |||
uniform_size=None, # set legend points to be a uniform size |
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.
Please also docment in the docstring
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.
Okay. I noticed the keyword arguments for legend is also mentioned in figure.py. I'll add to that part as well.
#4257 seems to be a better fix. closing this one. |
fix for3225
An extra parameter uniform_size is added to legend so that user can specify a uniform_size for scatter plots.
e.g.
plt.legend(loc="lower left", markerscale=2., scatterpoints=1, fontsize=10,uniform_size=20)