-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Bug]: CbarAxesBase.toggle_label doesn't seem to work properly #23595
Copy link
Copy link
Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuestopic: mpl_toolkit🌱 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!
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuestopic: mpl_toolkit🌱 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!
Bug summary
It appears as if
CbarAxesBase.toggle_labeland therefore, maybe,SimpleAxisArtist.toggleand possibly something else does not work as expected.Probably related to the colorbar rewrite?
Code for reproduction
https://matplotlib.org/stable/gallery/axes_grid1/demo_axes_grid.html
Actual outcome
The two middle figures have visible tick labels for the color bar.
Expected outcome
No visible tick labels.
Additional information
There seems to be some sort of mismatch between the
_axisnumproperty and the location of the labels. It seems to work if the labels are located at the same side as the colorbar, i.e., right and bottom.Operating system
Arch
Matplotlib Version
3.5.2 and
mainMatplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
git checkout