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 }})
In some plots, rot
and fontsize
arguments are not applied properly.
- timeseries line / area plot:
rot
is not applied to minor ticklabels, andfontsize
is completely ignored. (Fixed to apply to xticklabels) - kde plot:
rot
andfontsize
are completely ignored. (Fixed to apply to xticklabels) - scatter and hexbin plots:
rot
andfontsize
are 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
2 participants