Skip to content

Interface: MakeSubplotsOptions ​

Options for makeSubplots. Names follow Python's make_subplots in camelCase.

Properties ​

PropertyTypeDescription
cols?numberNumber of columns (default 1).
columnWidths?readonly number[]Relative column widths, one per column (default equal).
horizontalSpacing?numberSpace between columns, as a plot-area fraction (default 0.2 / cols).
rowHeights?readonly number[]Relative row heights, one per row (default equal); row 1 first.
rows?numberNumber of rows (default 1).
sharedX?SharedAxesShare x axes (default false).
sharedY?SharedAxesShare y axes (default false).
specs?readonly readonly (SubplotSpec | null | undefined)[][]Per-cell specs, rows × cols (default: an 'xy' subplot in every cell).
startCell?"top-left" | "bottom-left"Where row 1, column 1 is: 'top-left' (default) or 'bottom-left'.
subplotTitles?readonly (string | null | undefined)[]Titles of the subplots in row-major order (row 1 first), skipping empty and spanned cells; '' or null leaves a subplot untitled. They are paper annotations named SUBPLOT_TITLE_NAME, drawn at 4/3 of layout.font.size (plotly.py: 16 px over a 12 px base, fixed).
verticalSpacing?numberSpace between rows, as a plot-area fraction (default 0.3 / rows).

Released under the MIT License.