BUG: Better axis label handling for partial layout by sinhrks · Pull Request #7457 · pandas-dev/pandas (original) (raw)
Handle ticklabels
and labels
based on below rules. Currently labels
are always displayed even if ticklabels
are hidden and causes confusion.
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)