You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saved my day. This really should work out of the box. Why do the legend markers change size at all...? I get the point where the only legend info is the size of the marker, but often it's colors/categories etc. that should be in the legend first and foremost.
Usually you want a legend to show the marker in the same size as it appears in the plot. For a scatter with different sizes, there is no general way to determine which of the used sizes would be the best to show in the legend - this requires some user input.
But of course feel free to make a suggestion here. Given two scatter plots
which "automatic" size would you expect to see in a legend?
Just the normal fontsize of the legend? Or, maybe more accurately, a constant size so that the markers in the legend do not overlap -- something visually pleasing w.r.t. to the already fixed linespacing size (IOW, maybe slightly larger than the fontsize, but smaller than fontsize+linespacing).
Actually, I don't know why #4247 wasn't pursued further. It looks much more straight forward than #4257.
I think @h-vetinari 's suggestion could be easily incoorporated as an uniform_size="auto" parameter (although it might not be possible to easily update the legend once fontsize or linespacing change after legend creation).
It'd be great if this is further pursued by someone who is able to implement it. It is one of the most important things that's missing in my day-to-day pyplot use.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
h-vetinari commentedon Oct 18, 2018
Saved my day. This really should work out of the box. Why do the legend markers change size at all...? I get the point where the only legend info is the size of the marker, but often it's colors/categories etc. that should be in the legend first and foremost.
ImportanceOfBeingErnest commentedon Oct 18, 2018
Usually you want a legend to show the marker in the same size as it appears in the plot. For a scatter with different sizes, there is no general way to determine which of the used sizes would be the best to show in the legend - this requires some user input.
But of course feel free to make a suggestion here. Given two scatter plots
which "automatic" size would you expect to see in a legend?
h-vetinari commentedon Oct 18, 2018
Just the normal fontsize of the legend? Or, maybe more accurately, a constant size so that the markers in the legend do not overlap -- something visually pleasing w.r.t. to the already fixed linespacing size (IOW, maybe slightly larger than the fontsize, but smaller than
fontsize+linespacing).ImportanceOfBeingErnest commentedon Oct 18, 2018
Actually, I don't know why #4247 wasn't pursued further. It looks much more straight forward than #4257.
I think @h-vetinari 's suggestion could be easily incoorporated as an
uniform_size="auto"parameter (although it might not be possible to easily update the legend once fontsize or linespacing change after legend creation).bf commentedon May 7, 2020
It'd be great if this is further pursued by someone who is able to implement it. It is one of the most important things that's missing in my day-to-day pyplot use.
github-actions commentedon Jun 7, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
h-vetinari commentedon Jul 10, 2023
Pity that this got closed, I missed the ping a year ago... 😑
rcomer commentedon Jul 10, 2023
@h-vetinari we are happy to re-open these bot-closed issues if someone is still interested in them.
github-actions commentedon Oct 2, 2024
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!