Hi,
is it possible to set the figure margin (Setting Graph Size | Python | Plotly) in a template (Theming and templates | Python | Plotly) so that it is applied to all figures? Using plotly-dash. With Python.
Yes.
def set_template():
pio.templates["draft"] = go.layout.Template(
layout=dict(font={'size': 10},
margin=dict(l=0, r=0, t=0, b=0),
paper_bgcolor="LightSteelBlue")
)
pio.templates.default = "draft"