-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
FIX: Enable xticklabels for all bottom axes #3600
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3600 +/- ##
=======================================
Coverage 98.52% 98.52%
=======================================
Files 75 75
Lines 24701 24712 +11
=======================================
+ Hits 24336 24348 +12
+ Misses 365 364 -1
|
if not _version_predates(mpl, "3.7"): | ||
assert ax.xaxis.get_tick_params()["labelleft"] | ||
else: | ||
assert len(ax.get_xticklabels()) > 0 |
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'm confused about how this is flagged as not tested since the pinned build log appears to have matplotlib 3.4 installed.
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.
Unsure about this comment by codecov, but its webpage for this test suite suggests it is tested (lines marked as green). See here.
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.
Agreed, the full code coverage report looks fine, not sure what's up with the bot.
Thanks! |
Prior to this change, wrapped faceted plots (with shared axis) are created by deletion of some axes from a larger rectangular grid, so axes that are not on the bottom row lose their tick labels. Current code makes sure that all xtick labels are visible, but doesn't ensure that they're on. The proposed PR makes sure all "bottom" axes have their xticklabels on.
Fixes #3548 :