How could I achieve the animation graph? Thanks
Bee-zest opened this issue · 2 comments
Bee-zest commented
How could I achieve the animation graph? Thanks
hgrif commented
Hi @Bee-zest,
The animation is generated by saving matplotlib figures as png images and converting them to a gif with the command (see the last code cell of this Notebook:
convert -loop 0 -delay 0 output/*.png -delay 500 output/00000165.png images/training.gif
I believe convert
is a tool from imagemagick. Alternatively, you could look into matplotlib.animation
(see an example here).
Good luck!
Bee-zest commented
Thank you so much
Henk Griffioen <notifications@github.com>于2019年3月13日 周三上午5:36写道:
… Hi @Bee-zest <https://github.com/Bee-zest>,
The animation is generate by saving matplotlib figures as png images and
converting them to a gif with the command (see the last code cell of this
Notebook
<https://github.com/equialgo/fairness-in-ml/blob/master/fairness-in-ml.ipynb>
:
convert -loop 0 -delay 0 output/*.png -delay 500 output/00000165.png
images/training.gif
I believe convert is a tool from imagemagick
<https://linux.die.net/man/1/convert>. Alternatively, you could look into
matplotlib.animation (see an examples here
<https://eli.thegreenplace.net/2016/drawing-animated-gifs-with-matplotlib/>
).
Good luck!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdCCtVlu0-lpCIV8ZmPXSYYM8cmXKT3Vks5vWPDogaJpZM4brcRx>
.