Skip to content

fignum_exists() could handle string numbers? #2880

@lebigot

Description

@lebigot

It is possible to create a figure with a string "number": figure(num="Charts"), which is used as the window title (if any).

This string number is even recognized by pyplot.subplots(…, num="Charts"): it does recover the original figure and axes.

However, pyplot.fignum_exists("Chart") returns False.

So, part of Matplotlib knows that a figure was created (and is open) with a certain string "number" (subplots(),…), while another part of Matplotlib doesn't (fignum_exists()). It would be useful if fignum_exists() was aware of figure string numbers too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions