Skip to content
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

Implemented Issue #3225. Added a uniform_size parameter to legend. #4247

Closed
wants to merge 4 commits into from
Closed

Conversation

rrrkren
Copy link

@rrrkren rrrkren commented Mar 19, 2015

fix for 3225
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)

@tacaswell tacaswell added this to the next point release milestone Mar 19, 2015
@tacaswell
Copy link
Member

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
Copy link
Member

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

Copy link
Author

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.

@rrrkren
Copy link
Author

rrrkren commented Mar 26, 2015

#4257 seems to be a better fix. closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants