# How to set :juno as the default Plots theme during startup

**URL:** https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971
**Category:** Visualization
**Created:** [September 14, 2018, 6:37pm UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971 "2018-09-14T18:37:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![zekeriya.sari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zekeriya.sari/32/13695_2.png) [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)
#### Post date: [September 14, 2018, 6:37pm UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/1 "2018-09-14T18:37:58Z")

</div>

Hi all,

I want to set the `:juno` theme as the default theme of the Plots during startup of a new julia session. For this purpose, I wrote the following lines in the `startup.jl` file.

```julia
using Plots
using PlotThemes
theme(:juno)

```

But, this time the startup of a new session takes some time and following error is thrown

```julia
UndefVarError: PlotDisplay not defined

```

although it is not harmful since plotting is not affected and `:juno` theme is set. Any suggestions about other possible ways of setting `:juno` as the default theme without slowing down the startup.

---

<div class="post-metadata">

### Author: ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)
#### Post date: [September 15, 2018, 10:29am UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/2 "2018-09-15T10:29:54Z")

</div>

`const PLOTS_DEFAULTS = Dict(:theme => :juno)`  
I believe there’s a juno-specific startup file that you could also set this in?

---

<div class="post-metadata">

### Author: ![zekeriya.sari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zekeriya.sari/32/13695_2.png) [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)
#### Post date: [September 15, 2018, 11:31am UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/3 "2018-09-15T11:31:03Z")

</div>

> [@mkborregaard](#):
>
> const PLOTS\_DEFAULTS = Dict(:theme =\> :juno)

This solved the problem. I do not know any juno-specific file but I wrote this line into `startup.jl`. Now the default theme is set to `:juno` and julia startup is not affected. Thank you for the reply.

---

<div class="post-metadata">

### Author: ![jonniedie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonniedie/32/12842_2.png) [@jonniedie](https://discourse.julialang.org/u/jonniedie)
#### Post date: [October 7, 2020, 7:18pm UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/4 "2020-10-07T19:18:13Z")

</div>

@mkborregaard What’s the correct way to do this these days? It seems that the `const PLOTS_DEFAULTS` approach doesn’t work any more.

---

<div class="post-metadata">

### Author: ![zekeriya.sari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zekeriya.sari/32/13695_2.png) [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)
#### Post date: [October 8, 2020, 7:10am UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/5 "2020-10-08T07:10:54Z")

</div>

Just to let you know @jonniedie. In my case, `const PLOTS_DEFAULTS = Dict(:theme => :juno) ` approach still works.

```julia
(@dev-env) pkg> st Plots 
Status `~/.julia/environments/dev-env/Project.toml`
  [91a5bcdd] Plots v0.29.9

```

---

<div class="post-metadata">

### Author: ![jonniedie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonniedie/32/12842_2.png) [@jonniedie](https://discourse.julialang.org/u/jonniedie)
#### Post date: [October 8, 2020, 1:05pm UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/6 "2020-10-08T13:05:46Z")

</div>

Hm. I’m in `Plots v1.6.8` and it’s not working.

---

<div class="post-metadata">

### Author: ![daschw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daschw/32/2926_2.png) [@daschw](https://discourse.julialang.org/u/daschw)
#### Post date: [October 21, 2020, 11:28am UTC](https://discourse.julialang.org/t/how-to-set-juno-as-the-default-plots-theme-during-startup/14971/7 "2020-10-21T11:28:29Z")

</div>

This should be fixed for Plots \>= v1.6.11 ([https://github.com/JuliaPlots/Plots.jl/pull/3057](https://github.com/JuliaPlots/Plots.jl/pull/3057))
