Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear annotations #252

Closed
rgeos opened this issue Feb 11, 2016 · 1 comment
Closed

How to clear annotations #252

rgeos opened this issue Feb 11, 2016 · 1 comment

Comments

@rgeos
Copy link

rgeos commented Feb 11, 2016

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?

@etpinard
Copy link
Contributor

Looks like a https://github.com/plotly/plotly.py bug. Please open an issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants