Skip to content

BUG : Min/max markers on box plot are not visible with 'dark_background' (#40769) #41349

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 3 commits into from
May 10, 2021

Conversation

yeshsurya
Copy link
Contributor

@yeshsurya yeshsurya commented May 6, 2021

Color in boxplot.py should be a hex value. Letter based color will be at matplotlib level. Using same color as that of boxes for the caps as well. The color will be fetched based on the selected theme. We are over riding color with "k" , rather need to use the one set at matplotlib level.
Before Fix :

Caps for the box plot is not visible :
image

After Fix :

Caps for the box plow will be visible in dark background mode :
image

Whats New : Box Plot's Caps will have same color as boxes unless color is explicitly specified by user arguments. Hence theme changes will not adversly effect caps color.

@yeshsurya yeshsurya mentioned this pull request May 6, 2021
@lithomas1 lithomas1 added the Visualization plotting label May 6, 2021
@lithomas1 lithomas1 added this to the 1.3 milestone May 6, 2021
@lithomas1 lithomas1 added the Bug label May 6, 2021
Copy link
Contributor

@attack68 attack68 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to align with the approval I submitted for the previous PR which got corrupted.

@charlesdong1991
Copy link
Member

sorry, @yeshsurya a bit unlucky, I think this failure isn't related to your change, probably you will need another rebase

Copy link
Member

@charlesdong1991 charlesdong1991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! very nice! @yeshsurya

just a minor tip: use ``dark_background`` instead of 'dark_background' would be more aligned with the syntax usually done in whatsnew notes ^^

@charlesdong1991 charlesdong1991 merged commit c681791 into pandas-dev:master May 10, 2021
@charlesdong1991
Copy link
Member

thanks very much, very nice!

JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
…nd' (pandas-dev#40769) (pandas-dev#41349)

* BUG : Fixing - Min/max markers on box plot are not visible with 'dark_background' (pandas-dev#40769)

* DOC : Replace method path with uesr friendly version (pandas-dev#40769)

* DOC : Formatting change in whatsnew note (pandas-dev#40769)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Min/max markers on box plot are not visible with 'dark_background' theme
5 participants