How to change PlotlyJS theme

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

Check this post about modifying the PlotlyJS.templates.

Available choices:

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

I’m using PlotlyLight and it has a very quick first run time. Refer to this post

1 Like

Thanks !
The link explains how to modify a template.

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

p.layout.template = PlotlyJS.templates.plotly_dark

where the available templates can be found by:

PlotlyJS.templates.available
1 Like

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).