BUG/VIS: rot and fontsize are not applied to timeseries plots by sinhrks · Pull Request #7844 · pandas-dev/pandas (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation2 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

sinhrks

In some plots, rot and fontsize arguments are not applied properly.

import pandas as pd
import numpy as np

df = pd.DataFrame(np.random.randn(10, 4), index=pd.date_range(start='2014-07-01', freq='M', periods=10))
df.plot(rot=80, fontsize=15)

Current Result

figure_ng

After Fix

figure_ok

@sinhrks

The problem affects to kde, scatter, and hexbin plots. These all ignores rot and fontsize now.

In kde, I think it is natural to use rot and fontsize for xticklabels. But in scatter and hexbin, maybe better to apply to both xticklabels and yticklabels? Or only to xticklabels?

@sinhrks

jreback added a commit that referenced this pull request

Jul 28, 2014

@jreback

BUG/VIS: rot and fontsize are not applied to timeseries plots

@jreback

2 participants

@sinhrks @jreback