# Can I choose display software?

**URL:** <https://discourse.julialang.org/t/can-i-choose-display-software/29510>\
**Category:** General Usage\
**Tags:** question, plotting\
**Created:** [October 5, 2019, 1:31am UTC](https://discourse.julialang.org/t/can-i-choose-display-software/29510 "2019-10-05T01:31:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apoema](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/apoema/32/8033_2.png) [@Apoema](https://discourse.julialang.org/u/Apoema)\
**Post date:** [October 5, 2019, 1:31am UTC](https://discourse.julialang.org/t/can-i-choose-display-software/29510/1 "2019-10-05T01:31:39Z")

</div>

I am using Julia on Debian and plotting SVG images using Gadfly. The default software used to display the image is my web browser which really doesn’t seem as the best option to me. Can I configure Julia/Gadfly to use another one (like inkview?).

I search for configurations but don’t find much.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [October 5, 2019, 3:21am UTC](https://discourse.julialang.org/t/can-i-choose-display-software/29510/2 "2019-10-05T03:21:37Z")

</div>

You can load [GitHub - queryverse/ElectronDisplay.jl: An Electron.jl based figure and table display.](https://github.com/queryverse/ElectronDisplay.jl) and then plots will be shown in an electron window.

---

<div class="post-metadata">

**Author:** ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)\
**Post date:** [October 5, 2019, 6:06am UTC](https://discourse.julialang.org/t/can-i-choose-display-software/29510/3 "2019-10-05T06:06:29Z")

</div>

Welcome to the Julia community!

It can be done by overriding [this function](https://github.com/GiovineItalia/Gadfly.jl/blob/aa4855ca7d113e31a51389edbfdd87cff15a60a2/src/Gadfly.jl#L1016-L1034) like so:

```julia
using Compose, Gadfly

function Gadfly.display(d::Gadfly.GadflyDisplay, p::Union{Plot,Compose.Context})
    display(d, Gadfly.default_mime(), p)
    return
end

```

Then a test:

```julia
set_default_plot_format(:svg)
plot(x=1:10, y=rand(10), Geom.point)

import Cairo
set_default_plot_format(:pdf)
plot(x=1:10, y=rand(10), Geom.point)

```

The plot will open in whatever your default program for svg, pdf is.

---

<div class="post-metadata">

**Author:** ![Apoema](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/apoema/32/8033_2.png) [@Apoema](https://discourse.julialang.org/u/Apoema)\
**Post date:** [October 5, 2019, 1:35pm UTC](https://discourse.julialang.org/t/can-i-choose-display-software/29510/4 "2019-10-05T13:35:38Z")

</div>

That is what I was looking for, thank you.
