-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[Bug]: Axes.clear does not reset axislabel or ticklabel sizes #21239
Copy link
Copy link
Closed
Labels
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Consistency of the matplotlib API, including naming, behavior, defaults, …status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Actionstatus: needs comment/discussionneeds consensus on next stepneeds consensus on next steptopic: ticks axis labels
Metadata
Metadata
Assignees
Labels
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Consistency of the matplotlib API, including naming, behavior, defaults, …status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Actionstatus: needs comment/discussionneeds consensus on next stepneeds consensus on next steptopic: ticks axis labels
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug summary
After clear()ing an Axes, custom axislabel or ticklabel sizes persist.
Code for reproduction
Actual outcome
Expected outcome
The axislabel and ticklabels revert to the default size. (I think that's a saner behavior? Otherwise we should properly document what clear() resets and what it doesn't.)
Operating system
archlinux
Matplotlib Version
3.5.0.dev2168+g3b7b3a5a6f
Matplotlib Backend
any
Python version
39
Jupyter version
No response
Other libraries
No response
Installation
No response
Conda channel
No response