-
Notifications
You must be signed in to change notification settings - Fork 616
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
clear figure before plotting net data #2445
Comments
Does calling |
Could you check your code? |
you're right. it was a mistake. I was trying something before copying the code so forgot to set it back to plot. I'll fix it. but still have to clear the data before plotting a new one |
Sorry, I should have asked for this earlier, but do you have an image of what this produces? My best guess right now of what is happening is that when you call vispy/vispy/plot/plotwidget.py Lines 326 to 344 in 7ab945f
The key thing to replacing data on the line rather than adding new information is to use that LinePlot visual and call
That might work. |
Hello,
I'm trying to clear a plot before plotting new data without having to re-create the whole figure again. is there any option for such case?
Here's what I'm doing
the problem is that when i plot the second data. it also carry the data from the first plot.
one way to solve this it to create a new fig, but the process is way slower than plotting a new data. so, I'm wondering if there's a way to clear the previous plot and then plot new data.
The text was updated successfully, but these errors were encountered: