This example is taken from a tutorial related to convolution integral. I would like to export this example as animation in mp4 format. So far, the code looks like this :
![]() Is there a way to change t0 so that I'd like to able to save it as animation as in the tutorial In the example t0 decreases from -2.0 to -1.95 etc the green curve is shifted right, and the area between curves, product increases. In the tutorial there is an html animation and I would like to save as mp4 file. I've also added source code as an attachment. _______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
Erdem, I do not understand your question. If I run that code I do get an mp4 file of the animation. Tom On Sat, May 18, 2019 at 6:05 PM Erdem <[hidden email]> wrote:
Thomas Caswell
[hidden email] _______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
Please don't drop the mailing list from the replies. Ah, I ran it by invoking the script in an IPython session where `plt.ion()` has been called and `plt.show()` in non-blocking. If I run it as as script I see what you descirbe! Removing the `plt.show()` calls from inside of the re-draw function allows it to run end-to-end and write out the animation. Tom On Sun, May 19, 2019 at 5:59 PM Erdem <[hidden email]> wrote:
Thomas Caswell
[hidden email] _______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
Try 'reply-all' instead? Yes, that is controlled by the fps kwarg to `anim.save`. Glad it is working! Tom On Sun, May 19, 2019 at 6:23 PM Erdem <[hidden email]> wrote:
Thomas Caswell
[hidden email] _______________________________________________ Matplotlib-users mailing list [hidden email] https://mail.python.org/mailman/listinfo/matplotlib-users |
Free forum by Nabble | Edit this page |