Animated graph with matplotlib.animation
i've code in python 3 to make animated graph with datas coming in realtime
for this, i use
ani = FuncAnimation(fig, update, frames=np.linspace(0,40, 4096), init_func=init, blit=True) plt.show()
with update function where i update the graph objects
it works well on my desktop
In pythonista it shows the first frame then exit like the animation loop is not implemented. It does the init function only
Do you have any clue on this issue ?
Thanks in advance :)
You might try with the backend_pythonista, however many features are not implemented (like blit).
Plt.show shows a plot to the console, but it is a static image.
For animating specific types of data, you will be better off going with a custom view, since vector ops are a lot faster than generating a whole image each frame.