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 as not planned
Closed as not planned
Description
Bug summary
axes.get_tick_params()
introduced in#23692 returnslabelright
andlabelleft
even for the x-axis, even though the keys should be calledlabelbottom
orlabeltop
. This is confusing.
Code for reproduction
importmatplotlib.pyplotaspltfig,ax=plt.subplots()ax.tick_params(labelbottom=True,labeltop=True,labelright=True,labelleft=True)tick_params=ax.get_xaxis().get_tick_params()
Actual outcome
tick_params = {"labelright": True,"labelleft": True,# ..., no `labelbottom` or `labeltop`}
Expected outcome
tick_params = {"labelbottom": True,"labeltop": True,}
Additional information
The code path to this bug seems relatively clear, seehere. Not sure though how to solve.
Operating system
Windows, MacOS
Matplotlib Version
3.9.1
Matplotlib Backend
No response
Python version
3.12.5
Jupyter version
No response
Installation
pip