You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to codify what ax.clear and plt.cla are meant to actually clear on an axes, versus setting on the axes that should remain static.
For instance, it is pretty straight forward that clearing an axes should remove any data artists from the plot. However, what other properties should be reset. Labels? Tick styling, grids? Units on axes? Locators and formatters? The scale of the axises?
If anyone with edit access wants, they should start a list here, or if folks don't have edit access they can add list items on the comments.
Activity
tacaswell commentedon Dec 5, 2022
Can we expand this to also include what we expect clear / clf to do at the Figure level?
fig.clf#7434 <- request that gcf consult rcparamsTST: adding tests of current clear behavior on ticks
TST: adding tests of current clear behavior on ticks
TST: adding tests of current clear behavior on ticks
TST: adding tests of current clear behavior on ticks
TST: adding tests of current clear behavior on ticks
Included a shorter and more concise explanation
Add test.py to test the various issues linked to the matplotlib#28268 …