-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: fix custom xticks in bar() plotting function #28172
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.
Thanks! Can you add the example from #14119 as a test in pandas/tests/plotting/test_series.py` and make an assertion that the output x tick labels match the expected?
pandas/plotting/_matplotlib/core.py
Outdated
ax.set_xticks(self.tick_pos) | ||
ax.set_xticklabels(ticklabels) | ||
|
||
if self.custom_tick_pos is not None: |
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.
So, here is where we'd want to see if self.xticks
works with your changes.
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.
Looks really close, just a couple small comments.
Co-Authored-By: Tom Augspurger <[email protected]>
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 good, pending the discussion in #28172 (comment)
@GiuPassarelli can you merge master and fix conflict? I think just one outstanding comment here otherwise right? |
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.
LGTM. Ping on green.
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.
lgtm merging on green
Thanks @GiuPassarelli! |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff