Skip to content

[ENH]: should Axes hold references to widgets? #24373

Open
@timhoffm

Description

@timhoffm

Problem

People often forget to hold a reference to a widget so that it‘s getting garbage collected, c.f. #24372.

Proposed solution

Track widgets in a (maybe private) Axes attribute, as we do for artists.

The widget‘s artists (=visual part of the widget) are referenced, so there is a tight relationship. We should add the widget objects themselves (=logic part of the widget) as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions