Skip to content

BUG?: secondary_y is unaltered by fontsize parameter #12565

Closed
@scotthounsell

Description

@scotthounsell

Hi,

I have found that fontsize is ignored on the secondary_y axis in DataFrame.plot in version 17.1. Is this by intention? (Apologies, if this is the wrong place to ask this or if it has already been asked as I was unable to find it.)

Thanks!

Example:

>>> import pandas as pd, numpy as np, matplotlib.pyplot as plt
>>> x = pd.DataFrame(np.random.randn(100,2), columns=list('AB')).assign(C = lambda df: df.B.cumsum())
>>> x.plot(secondary_y='C', fontsize=20).legend(fontsize=16)
<matplotlib.legend.Legend object at 0x05F0B990>
>>> plt.show() # Righthand y axis remains small

Here are my package versions:

>>> pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 32
OS: Windows
OS-release: 8
machine: AMD64
processor: AMD64 Family 21 Model 16 Stepping 1, AuthenticAMD
byteorder: little
LC_ALL: None
LANG: None

pandas: 0.17.1
nose: None
pip: 1.5.6
setuptools: 7.0
Cython: None
numpy: 1.9.3
scipy: 0.16.0
statsmodels: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions