-
Notifications
You must be signed in to change notification settings - Fork 2k
Modernize boxplot and add a number of enhancements #3294
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
Merged
Merged
+794
−363
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 tasks
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #3294 +/- ##
==========================================
- Coverage 98.38% 98.35% -0.04%
==========================================
Files 77 77
Lines 24712 24942 +230
==========================================
+ Hits 24313 24531 +218
- Misses 399 411 +12
|
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR continues the work in #2429, addressing
boxplot
. As in the related PRs, boxplot now runs through the common variable assignment and axes setup and has gained the newnative_scale
andformatter
parameters. I won't repeat all the details here.The PR also adds a number of new features:
Unfilled boxes
With
fill=False
, no box patch will be drawn and colors will be mapped to the line elements:Gapped dodging
With
gap > 0
, boxes will be shrunk along the orient axes after dodging, leaving a gap between them:Closes #1455
Single-argument
linecolor
parameterizationThe new
linecolor
parameter allows to color of all line elements in the boxplot to be changed in one stepArtist containerization
The artists that comprise each boxplot are now packaged in a
BoxPlotContainer
for easier post-plotting accessIncreased customizability with matplotlib prop dicts
Any customizations passed through matplotlib keyword arguments are now applied on top of the changes that seaborn makes to apply its boxplot style.
Default flier marker
The default flier marker now follows the matplotlib rcparams so that it can be globally customized.
Other issues
The improvements to variable assignment fix #2756.