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.
Thanks for the clear report @GenieTim! I can reproduce this with our main development branch and with v3.7.0 (when this method was introduced). So it seems this has never worked correctly.
This issue is suited to new contributors because it does not require understanding of the
Matplotlib internals. To get started, please see our contributing
guide.
We do not assign issues. Check the Development section in the sidebar for linked pull
requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please
collaborate on the work by reviewing it rather than duplicating it in a competing PR.
Activity
rcomer commented on Aug 31, 2024
Thanks for the clear report @GenieTim! I can reproduce this with our main development branch and with v3.7.0 (when this method was introduced). So it seems this has never worked correctly.
rcomer commented on Aug 31, 2024
Marking as Good First Issue, because this should only require modifying the kwtrans dictionary here:
matplotlib/lib/matplotlib/axis.py
Lines 1097 to 1115 in 3a0bc88
To check whether we're on the x- or y-axis, we can look at self.axis_name.
github-actions commented on Aug 31, 2024
Good first issue - notes for new contributors
This issue is suited to new contributors because it does not require understanding of the
Matplotlib internals. To get started, please see our contributing
guide.
We do not assign issues. Check the Development section in the sidebar for linked pull
requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please
collaborate on the work by reviewing it rather than duplicating it in a competing PR.
If something is unclear, please reach out on any of our communication
channels.
Fix matplotlib#28772: get_tick_params consistency for x and y axis
dynamic mapping configuration for issue matplotlib#28772
MaozGelbart commented on Sep 12, 2024
Hi, I think this is reported in #27416 .
rcomer commented on Sep 12, 2024
Thanks for flagging that @MaozGelbart!