# Output a plot with makie without opening a separate window

**URL:** <https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [March 2, 2019, 3:13pm UTC](https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395 "2019-03-02T15:13:44Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [March 2, 2019, 3:13pm UTC](https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395/1 "2019-03-02T15:13:44Z")

</div>

When I run this and send the output to a web app (Blink) I get the plot in the webapp, but also a separate window opening! Is there a way of not opening the actual plot window?

```julia
Makie.lines(x)

```

In Plots.jl the window only appears when it’s returned in the REPL, or you specifically call `display()`.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [March 2, 2019, 3:48pm UTC](https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395/2 "2019-03-02T15:48:33Z")

</div>

AbstractPlotting.inline!(true) should do the trick!

---

<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:** [March 2, 2019, 4:54pm UTC](https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395/3 "2019-03-02T16:54:36Z")

</div>

I’m not sure that’s a good way to do this. If I set that in a package the user wont be able to plot anything separately.

There needs to be a way of choosing the display that isn’t global. Why isn’t the Plots.jl behaviour workable?

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [March 2, 2019, 11:51pm UTC](https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395/4 "2019-03-02T23:51:35Z")

</div>

What is the Plots behaviour?

---

<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:** [March 3, 2019, 12:37am UTC](https://discourse.julialang.org/t/output-a-plot-with-makie-without-opening-a-separate-window/21395/5 "2019-03-03T00:37:51Z")

</div>

I’ve never investigated what the mechanism is as it just works. But the output of `plot()` that is passed to Blink etc. outputs a png or svg that displays in the electron window, and doesn’t open a separate window when it is displayed.

In Makie it outputs the png which appears in the electron window, but also opens a separate plot window.
