Modify PlotlyJS-Templates

Thanks! That works :slight_smile:

plt_layout = PlotlyJS.Layout(;
    template            = PlotlyJS.templates.simple_white,
    height              = 400,
    width               = trunc(Int, sqrt(2) * 400),
    title_font_size     = 28,
    font_size           = 20, 
    legend_font_size    = 20,
    xaxis               = PlotlyJS.attr(; 
        linewidth = 2.0,
        linecolor = "rgb(36,36,36)",
        zeroline  = false,
        showline  = true,
        ),
    yaxis               = PlotlyJS.attr(; 
        linewidth = 2.0,
        linecolor = "rgb(36,36,36)",
        zeroline  = false,
        showline  = true,
        ),
)
MyTemplateHalfTextWidth  = PlotlyJS.Template(layout = plt_layout)
1 Like