Skip to main content

Interface: ScatterPlotOptions

Defined in: src/mobjects/graphing/ScatterPlot.ts:12

Options for creating a ScatterPlot.

Properties​

axes?​

optional axes: Axes

Defined in: src/mobjects/graphing/ScatterPlot.ts:26

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


axisColor?​

optional axisColor: string

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

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


colors?​

optional colors: string | string[]

Defined in: src/mobjects/graphing/ScatterPlot.ts:20

Dot color, or a per-point color array. Default: Manim color palette


fillOpacity?​

optional fillOpacity: number

Defined in: src/mobjects/graphing/ScatterPlot.ts:22

Fill opacity for the dots. Default: 1


sizes?​

optional sizes: number | number[]

Defined in: src/mobjects/graphing/ScatterPlot.ts:18

Dot radius, or a per-point radius array for a bubble chart. Default: 0.06


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/graphing/ScatterPlot.ts:24

Stroke width for the dots. Default: 0


x​

x: number[]

Defined in: src/mobjects/graphing/ScatterPlot.ts:14

X coordinates of the points.


xLength?​

optional xLength: number

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

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


xRange?​

optional xRange: [number, number] | [number, number, number]

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

X-axis range override as [min, max] or [min, max, step].


y​

y: number[]

Defined in: src/mobjects/graphing/ScatterPlot.ts:16

Y coordinates of the points. Paired with x by index.


yLength?​

optional yLength: number

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

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


yRange?​

optional yRange: [number, number] | [number, number, number]

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

Y-axis range override as [min, max] or [min, max, step].