Skip to main content

Interface: BoxPlotOptions

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

Options for creating a BoxPlot.

Properties​

axes?​

optional axes: Axes

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

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:53

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


boxWidth?​

optional boxWidth: number

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

Box thickness in category units. Default: 0.5


colors?​

optional colors: string | string[]

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

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


data​

data: number[] | number[][]

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

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


fillOpacity?​

optional fillOpacity: number

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

Fill opacity for the boxes. Default: 0.6


orientation?​

optional orientation: PlotOrientation

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

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


outlierRadius?​

optional outlierRadius: number

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

Radius of the outlier dots. Default: 0.05


strokeWidth?​

optional strokeWidth: number

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

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


whiskerFactor?​

optional whiskerFactor: number

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

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


xLength?​

optional xLength: number

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

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


yLength?​

optional yLength: number

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

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