# PackageCompiler Executable - Plots not showing up

**URL:** <https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630>\
**Category:** Visualization\
**Tags:** package, plotting, pyplot\
**Created:** [December 23, 2019, 7:12pm UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630 "2019-12-23T19:12:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtwhite4](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@mtwhite4](https://discourse.julialang.org/u/mtwhite4)\
**Post date:** [December 23, 2019, 7:12pm UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630/1 "2019-12-23T19:12:30Z")

</div>

Hi all,

I just figured out how to compile my code into an executable using PackageCompiler. This has worked great. However, upon running the code, none of the plot windows show up. For my project it is necessary that the user see real-time images. This problem has only started now that I am running from the executable. running the .jl file in the powershell still provides a pop-up window with the plots.

I am running Windows 10 and plotting with PyPlot.

Thanks,  
Matthew

---

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [December 23, 2019, 10:29pm UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630/2 "2019-12-23T22:29:32Z")

</div>

Hello,

Try: `PyPlot.plot(1:100); PyPlot.show()`

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [December 23, 2019, 10:42pm UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630/3 "2019-12-23T22:42:31Z")

</div>

It may be that the plotting window is being closed since the program exits - have you tried saving the plot to a file instead and checking whether the plot is being produced at all?

---

<div class="post-metadata">

**Author:** ![mtwhite4](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@mtwhite4](https://discourse.julialang.org/u/mtwhite4)\
**Post date:** [December 24, 2019, 8:52pm UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630/4 "2019-12-24T20:52:29Z")

</div>

Thanks for your quick reply. Show() does work, however the code now does not display any information to the terminal until the plot is closed. The results are still kept track of just not displayed until the plot is closed. Additionally, new plots will not be shown until the previous plot is closed.  
I am generating plots iteratively and refreshing the same figure. Currently, the figure must be closed in order to refresh itself with the next iteration. The code also seems to hang at this point and will not continue past the image generation.

Thanks,  
Matthew

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [December 25, 2019, 6:11am UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630/5 "2019-12-25T06:11:46Z")

</div>

Could you plot in `@async`?
