1.This becomes the interactive plot I am referring to. You will need to open the figure that appears at the bottom of the screen (if it does not display automatically) immediately after you start the program, in order to see the "animation". My question is: how do I record all of the updates in this interactive plot as a video? I do not want to record the screen. I also do not want to replace my current code fully with an animation object. Is there any way to create a video recording this interactive plot by supplementing the interactive plotting code rather than fully replacing it?
import matplotlib.pyplot as plt
plt.ion()
plt.figure()
for i in range(1000):
plt.axis((0,10,0,100))
plt.plot([1,2,3,4,5,6,7,8,9],[i,i,i,i,i,i,i,i,i],'ro')
plt.pause(.1)
plt.cla()
plt.clf()