# How to change PlotlyJS theme

**URL:** https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435
**Category:** Visualization
**Tags:** question, plotting, plotlyjs, plotlylight
**Created:** [April 26, 2025, 2:06pm UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435 "2025-04-26T14:06:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [April 26, 2025, 2:06pm UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435/1 "2025-04-26T14:06:53Z")

</div>

I begin to use PlotlyJS and I wonder how to change the theme.  
I also wonder about the right Plotly julia package (PlotlyJS/PlotlyLight).

Best

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [April 27, 2025, 2:00am UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435/2 "2025-04-27T02:00:38Z")

</div>

[Check this post](https://discourse.julialang.org/t/modify-plotlyjs-templates/89251/3) about modifying the `PlotlyJS.templates`.

Available choices:

```julia
julia> PlotlyJS.templates
Templates configuration
-----------------------
Default template: plotly
Available templates: [:presentation, :plotly_dark, :ggplot2, :plotly, :seaborn, :ygridoff, :plotly_white, :simple_white, :xgridoff, :gridon]

```

---

<div class="post-metadata">

### Author: ![karei](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/karei/32/214809_2.png) [@karei](https://discourse.julialang.org/u/karei)
#### Post date: [April 27, 2025, 2:10am UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435/3 "2025-04-27T02:10:00Z")

</div>

I’m using PlotlyLight and it has a very quick first run time. [Refer to this post](https://discourse.julialang.org/t/plotlykaleido-cannot-save-plotlylight-drawings-created-from-templates/127779)

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [April 27, 2025, 7:34am UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435/4 "2025-04-27T07:34:38Z")

</div>

Thanks !  
The link explains how to modify a template.

If one only wants to use a predefined template for a given Plotly plot `p`:

```julia
p.layout.template = PlotlyJS.templates.plotly_dark

```

where the available templates can be found by:

```julia
PlotlyJS.templates.available

```

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [April 27, 2025, 7:39am UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435/5 "2025-04-27T07:39:21Z")

</div>

Thanks ! On my first try, PlotlyJS seemed reasonably fast. Il will give PlotlyLight a try (I hope that one can then directly use the Plotly documentation).
