-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed as not planned
GenieTim/matplotlib
#1Closed as not planned
Copy link
Labels
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: confirmed bugstatus: duplicatetopic: ticks axis labels
Description
Bug summary
axes.get_tick_params()
introduced in #23692 returns labelright
and labelleft
even for the x-axis, even though the keys should be called labelbottom
or labeltop
. This is confusing.
Code for reproduction
import matplotlib.pyplot as plt
fig, 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, see here. 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
rcomer
Metadata
Metadata
Assignees
Labels
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: confirmed bugstatus: duplicatetopic: ticks axis labels