Skip to content

[MNT]: Add tests to codify ax.clear #23839

Closed
@jklymak

Description

@jklymak

Summary

As discussed on today's call.

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.

Crossref: #23808

More reference from @timhoffm (#23808 (review)):

Proposed fix

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions