-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
misplaced scatter/hexbin subplot colorbars #21728
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.
can u modify the test to catch this? (if possible / if not ok)
doc/source/whatsnew/v0.24.0.txt
Outdated
@@ -337,7 +337,7 @@ Plotting | |||
^^^^^^^^ | |||
|
|||
- Bug in :func:'DataFrame.plot.scatter' and :func:'DataFrame.plot.hexbin' caused x-axis label and ticklabels to disappear when colorbar was on in IPython inline backend (:issue:`10611` and :issue:`10678`) | |||
- | |||
- Bug in :func:'DataFrame.plot.scatter' and :func:'DataFrame.plot.hexbin' resulted in misplaced colorbars when subplot was used (related to :issue:`20455`) |
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.
you don’t need another entry, just add on to the previous one (just the number is ok)
Codecov Report
@@ Coverage Diff @@
## master #21728 +/- ##
==========================================
+ Coverage 91.92% 91.93% +<.01%
==========================================
Files 158 159 +1
Lines 49705 49719 +14
==========================================
+ Hits 45693 45707 +14
Misses 4012 4012
Continue to review full report at Codecov.
|
Thanks @jreback. I included a test that checks if the distance between subplot parent axes is almost the same as the distance between colorbars. I'm not sure what |
thanks @javadnoorb |
git diff upstream/master -u -- "*.py" | flake8 --diff
NOTE: I have tested the following in Jupyter lab.
When I run:
I get:
This PR fixes the issue with colorbars. After the PR the output is:
This also fixes similar issue with hexbin plot. To explore different configurations try the following function: