-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[New Feature] Insert color fill parameter to Boxplot instead of using 'patch_artist' #17959
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
Comments
Thanks for your proposal. Generally, I agree that it should be simpler to set the facecolor. Setting a single colorYou can already do This would also open the way of maybe defaulting or always using patches. I don't see a benefit in boxes being drawn with Line2D. Using a Setting different colors per boxI'm -0.5 on this. We don't have per-element settings for any of the styling parameters. This would add additional complexity to an large API. |
I would think that there's certainly merit in switching to always using patch_artist=True (with the relevant deprecation period, yada yada). My guess is that we simply started using Line2D, and then at some point it was realized that Patches are (nearly) strictly more powerful, at which point both options were kept for backcompat. But always using Patches is just simpler. |
Will have to think about the least-breaking way to migrate. Since Note to self: seaborn always uses |
Was this closed for some reason? I think the general agreement was that it is a reasonable feature. I'll take the liberty of re-opening... |
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! |
Feature Request
I'm new to matplotlib and I don't know if there is a specific reason for the boxplot fill coloring to be the way it is. I only wonder if it could be done in a more straight forward manner than what is shown in here.
The idea for this "new feature" would be to use a
color
parameter that recieves either a list of supported colors or a single color (e.g.color = 'red'
) that specifies the colors to be applied to each one of the boxplots in the ax.How it is currently done
The idea for this 'New Feature'
Any thoughts on this idea?
Matplotlib version
print(matplotlib.get_backend())
): TkAggThe text was updated successfully, but these errors were encountered: