-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: hidden ticklabels with sharex and secondary #9164
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
BUG: hidden ticklabels with sharex and secondary #9164
Conversation
My reformatting hides the change. The only difference is in the call to |
|
||
|
||
|
||
- Bug in hiding ticklabels with subplots and shared axes when adding a |
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.
no spaces needed on multiple lines (it will auto-wrap)
looks good. minor doc issue. |
@TomAugspurger looks ok, pls rebase. |
needs a rebase |
6e1e4aa
to
63ae3bd
Compare
Rebased... will merged later today. |
The failure here was a build failure on a job that doesn't run the plotting code. Going to merge |
63ae3bd
to
fa7c29e
Compare
Well, I messed that up. Pushed before |
this problem seems to be still existing in pandas 0.17.0, on subplots with at least two rows: import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
mat = np.random.rand(10,2)
df = pd.DataFrame(mat, columns=['A','B'])
fig, axes = plt.subplots(nrows=2, ncols=2)
df.plot(secondary_y='B', ax=axes[0, 1], legend=False) |
Closes #9158
Introduced in the subplot refactoring in #7457
cc @sinhrks
The fix is pretty simple, but I'm worried I may have broken other things. No tests failed though, so hopefully we're good.