Some useful ideas to make better looking videos
Clear your figure after you add each frame
If you do not want your plots to be cumulative use plt.clf()
to clear figures between frames.
Add a blank frame to the start of your movies
plt.plot() #make an blank plot
my_movie.gather() #this adds the blank plot your video
for i in range():
plt.plot()
my_movie.gather() #the rest of the frames are added here
my_movie.finalize()
Specify the x and y limits to your plots
If you do not want your axes to shift between frames, specify their limits with plt.xlim()
or plt.ylim()
.
FFMPEG does not overwrite previous video files
If you are debugging, and making many movies without changing the name of the movie, pyvie will automatically add '-#' to the end of the file name. # will start at 1 and increment by one each time you run pyvie. This may produce a lot of extra movie files you don't plan on saving!