Ask Your Question
2

Why does the Matplotlib plot disappear when an annotation is added?

asked 2023-06-12 04:49:15 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-12 04:53:01 +0000

devzero gravatar image

There could be multiple reasons for this, but one possible reason could be that the plot is being overwritten by the annotation. This can happen if the annotation is added to the same plot window without clearing the previous plot. To avoid this, one can clear the plot using the clf() function before adding new annotations or create a new plot window for each plot.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-12 04:49:15 +0000

Seen: 11 times

Last updated: Jun 12 '23