Skip to content

Interface: MakeSubplotsResult ​

Result of makeSubplots.

Properties ​

PropertyTypeDescription
cells(SubplotCell | null)[][]The subplots by 1-based position: cells[row - 1][col - 1] (null if empty or spanned).
layoutRecord<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 ​

ParameterType
traceT
rownumber
colnumber
options?PlaceOptions

Returns ​

T & PlacedTrace

Released under the MIT License.