matplotlib__matplotlib-20826
ax.clear() adds extra ticks, un-hides shared-axis tick labels
Verdict: the issue points to the file or function that was changed (Tier B).
This is because, for some reason, the tick `rcParams` are applied at the end of `Axes.__init__` instead of at the end of `Axes.clear` or even `Axis.clear`.
The text points to the exact place to change: “This is because, for some reason, the tick `rcParams` are applied at the end of `Axes.__init__` instead of at the end of `Axes.clear` or even `Axis.clear`.”
All 500 SWE-bench Verified tasks · more matplotlib/matplotlib tasks · How the check works