Jon Nir
Jon Nir

Reputation: 585

Update spacing between Plotly subplots

Is there a way to change the vertical/horizontal spacing between subplots in an existing figure? I couldn't find anything in the docs or user forum, and the following throws a Bad property error:

import numpy as np
import plotly.graph_object as go
from plotly.subplots import make_subplots

fig = make_subplots(rows=2, cols=2, vertical_spacing=0.05)
# ... add subplots to figure

fig.update_layout(vertical_spacing=0.1)

Upvotes: 0

Views: 49

Answers (0)

Related Questions