# Modify PlotlyJS-Templates

**URL:** <https://discourse.julialang.org/t/modify-plotlyjs-templates/89251>\
**Category:** General Usage\
**Tags:** plotlyjs\
**Created:** [October 25, 2022, 2:58pm UTC](https://discourse.julialang.org/t/modify-plotlyjs-templates/89251 "2022-10-25T14:58:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [October 25, 2022, 3:36pm UTC](https://discourse.julialang.org/t/modify-plotlyjs-templates/89251/3 "2022-10-25T15:36:10Z")

</div>

Thanks! That works 🙂

```julia
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)

```

---

_[View the full topic](https://discourse.julialang.org/t/modify-plotlyjs-templates/89251)._
