Skip to content

VIS/BUG: subplots=True gives rotated tick labels #15025

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

Open
jorisvandenbossche opened this issue Dec 31, 2016 · 1 comment
Open

VIS/BUG: subplots=True gives rotated tick labels #15025

jorisvandenbossche opened this issue Dec 31, 2016 · 1 comment
Labels

Comments

@jorisvandenbossche
Copy link
Member

Problem description

When using the normal plot() method vs plot(subplots=True), you get a different rotation for the ticklabels. I don't think this inconsistency is needed, and would use non-rotated ticklabels for subplots=True as well.

Code Sample

In [6]: df = pd.DataFrame(np.random.randn(20,2), columns=['A', 'B'], index=pd.date_range("2016-01-01", periods=20))

In [8]: df.plot()
Out[8]: <matplotlib.axes._subplots.AxesSubplot at 0x7f00389f0198>

figure_1-nosubplots

In [9]: df.plot(subplots=True)
Out[9]: 
array([<matplotlib.axes._subplots.AxesSubplot object at 0x7f00333381d0>,
       <matplotlib.axes._subplots.AxesSubplot object at 0x7f00332ddf98>], dtype=object)

figure_1_subplots

The above example is with a time series, but you actually get exactly the same when eg just using the default integer index.

Using pandas master, 0.19.0+289.g1bf94c8

@jorisvandenbossche jorisvandenbossche added this to the Next Major Release milestone Dec 31, 2016
@sinhrks
Copy link
Member

sinhrks commented Jan 4, 2017

Yeah, the default rotation is not needed as users can overwrite via rot kw.

@mroeschke mroeschke removed this from the Contributions Welcome milestone Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants