Skip to main content

Interface: BoxPlotOptions

Defined in: src/mobjects/graphing/BoxPlot.ts:28

Options for creating a BoxPlot.

Properties​

axes?​

optional axes: Axes

Defined in: src/mobjects/graphing/BoxPlot.ts:46

An existing Axes to draw onto. When omitted, one is built from the data.


axisColor?​

optional axisColor: string

Defined in: src/mobjects/graphing/BoxPlot.ts:52

Color for the axes when auto-building. Default: '#ffffff'


boxWidth?​

optional boxWidth: number

Defined in: src/mobjects/graphing/BoxPlot.ts:42

Box thickness in category units. Default: 0.5


colors?​

optional colors: string | string[]

Defined in: src/mobjects/graphing/BoxPlot.ts:34

Box color, or a per-group color array. Default: Manim color palette


data​

data: number[] | number[][]

Defined in: src/mobjects/graphing/BoxPlot.ts:30

One data group (number[]) or several groups (number[][]).


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/graphing/BoxPlot.ts:36

Fill opacity for the boxes. Default: 0.6


orientation?​

optional orientation: PlotOrientation

Defined in: src/mobjects/graphing/BoxPlot.ts:32

Lay boxes along the x-axis ('vertical') or y-axis ('horizontal'). Default: 'vertical'


outlierRadius?​

optional outlierRadius: number

Defined in: src/mobjects/graphing/BoxPlot.ts:44

Radius of the outlier dots. Default: 0.05


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/graphing/BoxPlot.ts:38

Stroke width for box, median and whiskers. Default: 2


whiskerFactor?​

optional whiskerFactor: number

Defined in: src/mobjects/graphing/BoxPlot.ts:40

Whisker length as a multiple of the IQR. Default: 1.5


xLength?​

optional xLength: number

Defined in: src/mobjects/graphing/BoxPlot.ts:48

Visual length of the x-axis when auto-building axes. Default: 8


yLength?​

optional yLength: number

Defined in: src/mobjects/graphing/BoxPlot.ts:50

Visual length of the y-axis when auto-building axes. Default: 6