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 }})
In some plots, rot and fontsize arguments are not applied properly.
- timeseries line / area plot:
rotis not applied to minor ticklabels, andfontsizeis completely ignored. (Fixed to apply to xticklabels) - kde plot:
rotandfontsizeare completely ignored. (Fixed to apply to xticklabels) - scatter and hexbin plots:
rotandfontsizeare completely ignored. (Under confirmation)
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
After Fix
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?
jreback added a commit that referenced this pull request
BUG/VIS: rot and fontsize are not applied to timeseries plots

