Skip to content

BUG: Better axis label handling for partial layout #7457

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 1 commit into from
Jul 1, 2014

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Jun 14, 2014

Closes #5897.

Handle ticklabels and labels based on below rules. Currently labels are always displayed even if ticklabels are hidden and causes confusion.

  • If sharex is True, display only most bottom xticklabels on each columns. (Because ENH/BUG: boxplot now supports layout #7035 hides the bottom-right axes). Hide xlabel as the same manner as xticklabels
  • If sharey is True, display most left yticklabels (no change). Hide ylabel as the same manner as yticklabels (changed)
import pandas as pd
from numpy.random import randn
import matplotlib.pyplot as plt

d = pd.DataFrame({'one':randn(5), 'two':randn(5), 'three':randn(5), 'label':['label'] * 5},
        columns = ['one','two','three', 'label'])
bp= d.boxplot(by='label', rot=45)

figure_1

@sinhrks sinhrks changed the title BUG: Better xaxis handling for partial layout BUG: Better axis label handling for partial layout Jun 14, 2014
@jreback jreback added this to the 0.14.1 milestone Jun 14, 2014
@jreback
Copy link
Contributor

jreback commented Jun 14, 2014

@cpcloud

@jreback
Copy link
Contributor

jreback commented Jun 17, 2014

@cpcloud ?

@jreback
Copy link
Contributor

jreback commented Jun 22, 2014

@cpcloud ? @sinhrks can you rebase

jreback added a commit that referenced this pull request Jul 1, 2014
BUG: Better axis label handling for partial layout
@jreback jreback merged commit 0147b51 into pandas-dev:master Jul 1, 2014
@jreback
Copy link
Contributor

jreback commented Jul 1, 2014

thanks!

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.

'rot' parameter to DataFrame.boxplot not applied to some axes when multi-panel plot is produced using 'by'
2 participants