Answer the question
In order to leave comments, you need to log in
How to control plot window in matplotlib which is plotted in real time?
Hello. I've been able to plot in matplotlib in real time with data coming in all the time. To do this, I use the code below inside the loop.
plt.plot(x, y)
plt.draw()
plt.pause(0.0001)
plt.clf()
Answer the question
In order to leave comments, you need to log in
In fact, an animated graph in Python can be done in feng shui using the Animation class .
Many issues have been resolved there. Try it. If something doesn’t work out there specifically, ask a clarifying question, we will figure it out together.
Here is an example of how to embed a chart in an application and update it: tyts .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question