Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
Bug summary
I'm used to using the Axis API likeax.xaxis.set_major_formatter(...)
etc., so to be consistent it would be nice if one could doax.xaxis.set_label(...)
instead ofax.set_xlabel(...)
. It seems likeax.xaxis.set_label(...)
does not label the axis however.
Code for reproduction
importmatplotlib.pyplotaspltfig,ax=plt.subplots()ax.xaxis.set_label("x-label")
Actual outcome

Expected outcome

Additional information
No response
Operating system
No response
Matplotlib Version
3.8.3
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
conda