# Making gif out of graphs

**URL:** <https://discourse.julialang.org/t/making-gif-out-of-graphs/47143>\
**Category:** Graphs\
**Tags:** plotting, lightgraphs\
**Created:** [September 23, 2020, 4:25pm UTC](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143 "2020-09-23T16:25:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codzilla](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Codzilla](https://discourse.julialang.org/u/Codzilla)\
**Post date:** [September 23, 2020, 4:25pm UTC](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143/1 "2020-09-23T16:25:34Z")

</div>

Hi,

I’m teaching an undergraduate class in algorithmics and I would like to make some nice visualization of algorithms on graphs. To do so I would like to make gifs out of plots of graphs.  
I would very much like to use the @gif macro of Plots.jl but graphs plots are created bu GraphPlot.jl.

Is there any way for me to make it work?

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [September 24, 2020, 4:24pm UTC](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143/2 "2020-09-24T16:24:41Z")

</div>

I do not know if there is a direct solution, but in principle you can transform any set of images into an annimation. This is discussed in this thread, for example: [Plotting a sequence of images as a gif - #6 by yakir12](https://discourse.julialang.org/t/plotting-a-sequence-of-images-as-a-gif/23808/6)

---

<div class="post-metadata">

**Author:** ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Post date:** [September 24, 2020, 5:47pm UTC](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143/3 "2020-09-24T17:47:43Z")

</div>

> [@Codzilla](#):
>
> I would very much like to use the @gif macro of Plots.jl but graphs plots are created bu GraphPlot.jl.

One simplish option would be to create your graph plots using [GitHub - JuliaPlots/GraphRecipes.jl: Graph-related recipes to be used with Plots.jl](https://github.com/JuliaPlots/GraphRecipes.jl)  
instead.  
Which does work with Plots.jl
