VIS: Can't set xlabel/ylabel on histogram

This issue has been created since 2022-11-19.

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 wrote this answer on 2022-11-19

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

stefmolin wrote this answer on 2022-11-19

take

More Details About Repo
Owner Name pandas-dev
Repo Name pandas
Full Name pandas-dev/pandas
Language Python
Created Date 2010-08-24
Updated Date 2022-12-07
Star Count 36164
Watcher Count 1118
Fork Count 15472
Issue Count 3683

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Publishing v10.0.3 to PyPI failed 0 2022-10-06 2022-11-26
Build error on OpenSuse Leap 15.4 0 2022-12-02 2022-12-05
Feature request: don't ask for date and time 1 2020-10-18 2022-10-18
MSU-1 Check State bug (affects both PRO and OG models) 4 2020-06-17 2022-08-15
Issue when parsing t-sql query 1 2022-10-26 2022-11-14
Issue with convert function in Tsql - missing parenthesis 0 2022-10-27 2022-11-14
Not specified minimun SDK 0 2021-08-04 2022-07-16
[Windows]: Since Windows 11 h22h2 Update - not starting anymore 1 2022-10-03 2022-11-16
invalid memory address or nil pointer dereference when deploying using *.mtar as the filename 2 2021-06-14 2022-11-26
_normalize_string_argument should send the dict "values" not the "keys" to the _check_types function 1 2021-10-25 2022-10-29
Retention email backend implementation 0 2022-09-23 2022-10-01
Retention email DB & API design 0 2022-09-23 2022-10-01
master branch rename to main 1 2022-01-23 2022-09-17
Which version is most up-to-date? 5 2021-10-17 2022-10-30
ACR vs ACR 3 2021-12-13 2021-12-30
Counts are not being recorded 3 2021-10-31 2022-12-06
Tray icons dissapear 1 2022-02-21 2022-11-22
outer automorphism group of G2(q) 4 2022-01-01 2022-10-03
选择按钮太小了 无法修改 1 2021-12-29 2022-01-13
Improve API, providing filter AST in VirtualWindows 1 2018-11-21 2022-11-24
create-inlined-class visibility controlled by wrong compiler option 0 2021-01-13 2022-11-24
Raw mongo queries 3 2017-11-02 2021-12-27
Not able to Logout in the App 0 2021-03-19 2022-11-06
[1.4] 'bloch' misspelled as 'block' 0 2022-02-07 2022-08-21
Unable to convert call argument to Python object when using ros2 topic echo /fmu/vehicle_local_position/out 0 2022-10-10 2022-11-25
Wouldn't it be important to stay away from Bintray? 7 2021-04-04 2022-11-26
Documentation: Missing dependencies for qemu in README 3 2021-10-10 2022-10-14
Yet Another Proposal: Stereo Audio with Multi-Voice Support (Sweet and Simple Design) 0 2021-11-10 2022-11-30
Cannot import ESM modules in function nodes 1 2022-05-25 2022-11-04
Densha de Go Hashiro Yamanote Line: Graphic issues, Frame drops and CTD 0 2022-08-16 2022-10-01
[pt] Strange warning with 'Amanhã' 13 2022-04-27 2022-11-10
Certain pages stopped rendering with 0.16.0 8 2022-07-21 2022-11-18
FloatSlider with very small values 15 2015-12-03 2022-11-26
🐛 Bug Report: `npm run setup:dev` is not showing an error when something goes wrong 1 2022-07-23 2022-09-07
occ preview:pre-generate command not working? 9 2021-07-31 2022-12-04
domain & codomain of random variable misspecified? (p.175) 0 2022-08-25 2022-11-21
Enable terraform to maintain order of redirect_uris 5 2022-06-20 2022-08-17
The current unit tests throws the error "certificate verify failed" 3 2022-07-08 2022-09-03
Non maximum suppresion unsupported on TPU 3 2021-06-24 2022-10-17
showPorts riding over console.sendToScreen(); 0 2020-10-31 2022-10-05
Enum `SQS.QueueAttributeName` is missing the case `SqsManagedSseEnabled` 3 2021-11-23 2022-12-02
importing existing cluster does not populate backup status 4 2022-07-04 2022-11-21
C/C++ IntelliSense Go to Definition goes to the wrong definition 2 2022-05-31 2022-11-20
Natvis framework cannot display more than 50 content during debugging with ArrayItems or IndexListItems 8 2022-05-30 2022-10-02
defect html tags for svg (+path) 9 2022-06-09 2022-12-07
Smart meter on ESP32C3 does not read meter data 1 2022-07-03 2022-11-20
[Task] cache the rule match result 1 2022-06-27 2022-10-29
[Proposal] Search string for related models 3 2019-08-26 2022-11-07
twint -u username --following CRITICAL:root:twint.feed:Follow:IndexError 4 2021-04-23 2022-11-14
2.2.0-10.3 beta 2 2021-05-17 2022-01-21