Skip to content

BUG: hist plot secondary-y doesn't work #9610

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

Closed
TomAugspurger opened this issue Mar 7, 2015 · 2 comments · Fixed by #9812
Closed

BUG: hist plot secondary-y doesn't work #9610

TomAugspurger opened this issue Mar 7, 2015 · 2 comments · Fixed by #9812
Labels
Milestone

Comments

@TomAugspurger
Copy link
Contributor

The labels overlap

In [1]: df = pd.DataFrame(np.random.randn(30, 4), columns=list('abcd'))

In [2]: ax = df.a.plot(legend=True)

In [3]: df.b.plot(ax=ax, legend=True)
Out[3]: <matplotlib.axes._subplots.AxesSubplot at 0x10938f6a0>

hist

@TomAugspurger TomAugspurger added the Visualization plotting label Mar 7, 2015
@TomAugspurger TomAugspurger added this to the 0.16.1 milestone Mar 7, 2015
@TomAugspurger
Copy link
Contributor Author

Actually not specific to hist.

@sinhrks
Copy link
Member

sinhrks commented Apr 5, 2015

After #9812: Because the code above seems to be different, I've used following code:

df = DataFrame(np.random.randn(30, 4), columns=list('abcd'))

# primary -> secondary
ax = df['a'].plot(kind='hist', legend=True)
df['b'].plot(kind='hist', ax=ax, legend=True, secondary_y=True)

9610

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 a pull request may close this issue.

2 participants