# What Packages in Julia can Create Piston Moving in a Cylinder Animation?

**URL:** <https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492>\
**Category:** General Usage\
**Tags:** package\
**Created:** [January 25, 2023, 6:45am UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492 "2023-01-25T06:45:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [January 25, 2023, 6:45am UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/1 "2023-01-25T06:45:11Z")

</div>

Hi all,

I have no MWE or codes at all, but perhaps there is someone who already made it here.

I want to create this [https://miro.medium.com/max/640/0\*URlUh\_RUelxpA\_QJ.gif](https://miro.medium.com/max/640/0*URlUh_RUelxpA_QJ.gif)

> **[“AIR STANDARD CYCLE PROGRAM USING MATLAB AND PYTHON.”](https://medium.com/@neerajdixit_55283/air-standard-cycle-program-using-matlab-and-python-e978e23e0208)**
>
> 1. Objective:-

How exactly should I start? is Julia able to create the animation?

---

<div class="post-metadata">

**Author:** ![halejulia](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@halejulia](https://discourse.julialang.org/u/halejulia)\
**Post date:** [January 25, 2023, 11:42am UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/2 "2023-01-25T11:42:30Z")

</div>

If you have the Images for the cylinder, I think you could use the `[Plots.jl](https://docs.juliaplots.org/latest/) Package, to create an animation like that.

- you should look at this section on how to create animations  
[Animations · Plots](https://docs.juliaplots.org/latest/animations/)
- and for plotting images you can look here  
[Images · Plots](https://docs.juliaplots.org/latest/gallery/gr/generated/gr-ref006/)

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [January 25, 2023, 12:48pm UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/3 "2023-01-25T12:48:01Z")

</div>

If you want it to look slick in 3d, [Makie.jl](https://github.com/MakieOrg/Makie.jl)

---

<div class="post-metadata">

**Author:** ![Jake](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jake/32/46007_2.png) [@Jake](https://discourse.julialang.org/u/Jake)\
**Post date:** [January 25, 2023, 2:30pm UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/4 "2023-01-25T14:30:21Z")

</div>

Just curious if [blender](https://github.com/jagot/Blender.jl) would be a good fit?

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [January 25, 2023, 2:44pm UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/5 "2023-01-25T14:44:06Z")

</div>

Maybe [Javis.jl](https://github.com/JuliaAnimators/Javis.jl)?

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [January 27, 2023, 6:00am UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/6 "2023-01-27T06:00:53Z")

</div>

Maybe Makie is not my style… thus I already find an answer witk `Tikz` and `ImageMagick` to convert it to GIF:

![piston](https://global.discourse-cdn.com/julialang/original/3X/e/b/eb496a92b1edab48869330a8f7f9c05c173f3d90.gif)

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [January 27, 2023, 10:49am UTC](https://discourse.julialang.org/t/what-packages-in-julia-can-create-piston-moving-in-a-cylinder-animation/93492/7 "2023-01-27T10:49:47Z")

</div>

Good work! TikZ is very powerful, and, if you do a lot of diagrams, probably worth learning.

For fun, here’s the logo for LoopVectorization.jl, made with Luxor:

![loop-vectorization-animation](https://global.discourse-cdn.com/julialang/original/3X/b/3/b3d0f1d84c5d4604a7464444b79c6f8a597cdae6.gif)
