# Suppress Plot Window when output to animation

**URL:** <https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724>\
**Category:** General Usage\
**Created:** [November 5, 2019, 4:44am UTC](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724 "2019-11-05T04:44:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![natgeo-wong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/natgeo-wong/32/10965_2.png) [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Post date:** [November 5, 2019, 4:44am UTC](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724/1 "2019-11-05T04:44:09Z")

</div>

Hi! I’m creating an animation of several dozen to a hundred or so frames. However, for each frame I want to push to the animation there is a popup window that flashes open and then closes. Is there a way to get rid of that (i.e. suppress the plot figure completely), or at least display it in a consistent window so that it doesn’t make things so distracting?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [November 5, 2019, 5:31am UTC](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724/2 "2019-11-05T05:31:36Z")

</div>

I bet you’re using an Apple product, I’ve only heard people complain about it over there. Can you confirm this? probably has something to do with what Julia uses for Mac

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 5, 2019, 6:26am UTC](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724/3 "2019-11-05T06:26:22Z")

</div>

It is hard to tell what you are doing (eg what plotting package etc), please provide an MWE.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![natgeo-wong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/natgeo-wong/32/10965_2.png) [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Post date:** [November 5, 2019, 7:16am UTC](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724/4 "2019-11-05T07:16:54Z")

</div>

Yes, I am using a Mac xD.

I am currently using the main Plots function, specifically in StatsPlots. Using the gr() backend.

```julia
anim = Animation()
for ii = 1 : (100/dt)
    plot(x,etan[201,:],xlims=(-20,20),ylims=(-1,1))
    if isinteger((ii-1)/2); frame(anim); end
    global etap1 = shallowwave2D(etan,etam1,r,"periodic");
    global etam1 = deepcopy(etan); global etan = deepcopy(etap1);
end

mp4(anim,"/Users/natgeo-wong/SWE2Dtest_period_profile.mp4",fps=30)

```
