Skip to content
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

VIS: Can't set xlabel/ylabel on histogram #49793

Closed
3 tasks done
stefmolin opened this issue Nov 19, 2022 · 2 comments · Fixed by #49794
Closed
3 tasks done

VIS: Can't set xlabel/ylabel on histogram #49793

stefmolin opened this issue Nov 19, 2022 · 2 comments · Fixed by #49794
Assignees
Labels

Comments

@stefmolin
Copy link
Contributor

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

import numpy as np
import pandas as pd

np.random.seed(1)

ax = pd.Series(np.random.randn(1000) * 10 + 60).plot.hist(
    xlabel='grade', ylabel='students', ec='black'
)

Issue Description

xlabel and ylabel are accepted, but ignored.

Expected Behavior

As with other plotting methods, I would expect this to label the x and y axes as requested.

Installed Versions

INSTALLED VERSIONS

commit : e660f2c
python : 3.10.6.final.0
python-bits : 64
OS : Darwin
OS-release : 21.6.0
Version : Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8

pandas : 1.4.0.dev0+3654.ge660f2cf77.dirty
numpy : 1.23.4
pytz : 2022.1
dateutil : 2.8.2
setuptools : 65.5.0
pip : 22.2.2
Cython : 0.29.32
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.9.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.6.0
pandas_datareader: None
bs4 : 4.11.1
bottleneck : None
brotli :
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : 3.6.1
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : None
qtpy : None
pyqt5 : None

@stefmolin stefmolin added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Nov 19, 2022
@stefmolin stefmolin changed the title BUG: Can't set xlabel/ylabel on histogram VIS: Can't set xlabel/ylabel on histogram Nov 19, 2022
@stefmolin
Copy link
Contributor Author

More of a "not implemented yet" than a bug.

@stefmolin
Copy link
Contributor Author

take

@rhshadrach rhshadrach added Visualization plotting and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants