[Question] Matplotlib plot is appending data points to plot instead of changing them #1378
Unanswered
FilipeDVelosa
asked this question in
Q&A
Replies: 1 comment
-
Could you provide a minimal reproducible code? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am using a matplotlib plot in my program where I display the data and after pressing a button the plot should be updated (for now I am using random data, but this should come from a device). I can get the data to be displayed in the plot but after pressing the button a second time, the data points just accumulate in the plot instead of having completely new points. Pressing further the button just adds more points. Any idea of what might be causing this? I am attaching a part of the code that is responsible for this function.
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions