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

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

Labels

2 participants

@sinhrks @jreback