Skip to content

How to clear annotations #252

Closed
Closed
@rgeos

Description

@rgeos

When creating annotations like below

    fig['layout']['annotations'] = go.Annotations([])
    for i in list_of_dictionaries:
        fig['layout']['annotations'].append(go.Annotation(i))

in the first run of the script, the rendering of the annotations is correct: correct rendering

However, on a second run, with a different list of dictionaries, the new annotations are rendered correctly but without clearing the old annotations duplicate annotations

Isn't go.Annotations([]) suppose to initialize with an empty list?

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions