Interface: MakeSubplotsResult
Result of makeSubplots.
Properties
| Property | Type | Description |
|---|---|---|
cells | (SubplotCell | null)[][] | The subplots by 1-based position: cells[row - 1][col - 1] (null if empty or spanned). |
layout | Record<string, unknown> | Layout attributes to spread into the figure layout: xaxis, yaxis2, … (domain, anchor, and overlaying/side for secondary y axes) and annotations for the subplot titles. |
Methods
place()
ts
place<T>(
trace,
row,
col,
options?
): T & PlacedTrace;A copy of trace placed in the subplot at row, col (1-based): xaxis/yaxis for an 'xy' cell, domain.x/domain.y for a 'domain' cell. The input is not modified.
Type Parameters
| Type Parameter |
|---|
T extends object |
Parameters
| Parameter | Type |
|---|---|
trace | T |
row | number |
col | number |
options? | PlaceOptions |
Returns
T & PlacedTrace