Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Simplify example: Box plots with custom fill colors#27781
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
The [original example](https://matplotlib.org/3.8.0/gallery/statistics/boxplot_color.html) was more complex than need be:- The two plots only differed in the `notch=True` parameter, which is irrelevant for custom fill colors -> reduce to one- rework to a more realistic-like plot
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.
One small typo but otherwise looks good to me.
Uh oh!
There was an error while loading.Please reload this page.
np.random.normal(120, 30, size=100), | ||
] | ||
labels = ['peaches', 'oranges', 'tomatos'] | ||
colors = ['peachpuff', 'orange', 'tomato'] |
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.
I did not know these colours existed by using them here is 😎
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.
Actually, I checkedhttps://matplotlib.org/devdocs/gallery/color/named_colors.html and chose the fruits after available color names 😎
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
Simplify example: Box plots with custom fill colorsThe [original example](https://matplotlib.org/3.8.0/gallery/statistics/boxplot_color.html) was more complex than need be:- The two plots only differed in the `notch=True` parameter, which is irrelevant for custom fill colors -> reduce to one- rework to a more realistic-like plot---------Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
Theoriginal example was more complex than need be:
notch=True
parameter, which is irrelevant for custom fill colors -> reduce to one