-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Respect color argument in bar plot #17360
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
Conversation
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.
This looks OK to me (and not too hacky, it are really two different cases when plotting a bar plot)
doc/source/whatsnew/v0.21.0.txt
Outdated
@@ -374,6 +374,7 @@ I/O | |||
Plotting | |||
^^^^^^^^ | |||
- Bug in plotting methods using ``secondary_y`` and ``fontsize`` not setting secondary axis font size (:issue:`12565`) | |||
- Bug in ``Series.plot.bar`` or ``DataFramee.plot.bar`` with ``y`` not respecting user-passed ``color`` (:issue:`16822`) |
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.
DataFramee typo
2dcf78c
to
e02d8fd
Compare
This affect Series-like barplots with user-defined colors. We were always treating them as dataframe-like, with one color per column.
Codecov Report
@@ Coverage Diff @@
## master #17360 +/- ##
==========================================
- Coverage 91.25% 90.99% -0.26%
==========================================
Files 163 162 -1
Lines 49614 49570 -44
==========================================
- Hits 45274 45107 -167
- Misses 4340 4463 +123
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17360 +/- ##
==========================================
- Coverage 91.25% 91.23% -0.02%
==========================================
Files 163 163
Lines 49614 49617 +3
==========================================
- Hits 45274 45268 -6
- Misses 4340 4349 +9
Continue to review full report at Codecov.
|
This affect Series-like barplots with user-defined colors. We were always treating them as dataframe-like, with one color per column.
This affect Series-like barplots with user-defined colors. We were always treating them as dataframe-like, with one color per column.
This affect Series-like barplots with user-defined colors. We were always
treating them as dataframe-like, with one color per column.
closes #16822
This should go into 0.21.0, but if I have the time I'd like a put a more elegant solution in place.