Skip to content

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

Merged
merged 7 commits into from
Sep 23, 2019

Conversation

GiuPassarelli
Copy link
Contributor

Copy link
Contributor

@TomAugspurger TomAugspurger left a 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?

ax.set_xticks(self.tick_pos)
ax.set_xticklabels(ticklabels)

if self.custom_tick_pos is not None:
Copy link
Contributor

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.

Copy link
Contributor

@TomAugspurger TomAugspurger left a 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.

@TomAugspurger TomAugspurger added this to the 1.0 milestone Aug 30, 2019
Copy link
Contributor

@TomAugspurger TomAugspurger left a 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)

@WillAyd
Copy link
Member

WillAyd commented Sep 13, 2019

@GiuPassarelli can you merge master and fix conflict? I think just one outstanding comment here otherwise right?

Copy link
Contributor

@TomAugspurger TomAugspurger left a 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.

Copy link
Member

@WillAyd WillAyd left a 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

@TomAugspurger TomAugspurger merged commit ffe6cfd into pandas-dev:master Sep 23, 2019
@TomAugspurger
Copy link
Contributor

Thanks @GiuPassarelli!

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
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.

unable to set xticks within bar() plotting function
4 participants