update_subplot_layout

update_subplot_layout#

tollan.plot.plotly.update_subplot_layout(fig: Figure, fig_layout: dict[str, Any], row: int | None = None, col: int | None = None) None[source]#

Update layout for all subplots or specific subplot.

Parameters:
  • fig (go.Figure) – Plotly figure with subplots.

  • fig_layout (dict) – Layout dictionary with xaxis, yaxis, shapes, annotations, etc.

  • row (int, optional) – Target row (1-based). If None, updates all rows.

  • col (int, optional) – Target column (1-based). If None, updates all columns.

Notes

This function extracts xaxis, yaxis, shapes, and annotations from fig_layout and applies them to each subplot using update_xaxes/update_yaxes.