Skip to content

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

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
saffsd opened this issue Jan 10, 2014 · 2 comments · Fixed by #7457
Labels
Milestone

Comments

@saffsd
Copy link

saffsd commented Jan 10, 2014

Minimal snippet:

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)
plt.savefig('xxx.png')

Output produced:
xxx

Issue:
The label on the left is rotated but the label on the right is not.

Versions:
pandas '0.12.0'
matplotlib '1.3.1'

@jreback
Copy link
Contributor

jreback commented Jan 25, 2014

@saffsd if you'd like to submit a PR to correct this would be great.

@jreback jreback modified the milestones: 0.15.0, 0.14.0 Mar 28, 2014
@sinhrks
Copy link
Member

sinhrks commented May 24, 2014

How about fixing as below?

figure_1

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.

3 participants