Interface: ScatterPlotOptions
Defined in: src/mobjects/graphing/ScatterPlot.ts:12
Options for creating a ScatterPlot.
Properties
axes?
optionalaxes:Axes
Defined in: src/mobjects/graphing/ScatterPlot.ts:26
An existing Axes to plot onto. When omitted, one is built from the data.
axisColor?
optionalaxisColor:string
Defined in: src/mobjects/graphing/ScatterPlot.ts:36
Color for the axes when auto-building. Default: '#ffffff'
colors?
optionalcolors:string|string[]
Defined in: src/mobjects/graphing/ScatterPlot.ts:20
Dot color, or a per-point color array. Default: Manim color palette
fillOpacity?
optionalfillOpacity:number
Defined in: src/mobjects/graphing/ScatterPlot.ts:22
Fill opacity for the dots. Default: 1
sizes?
optionalsizes: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?
optionalstrokeWidth: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?
optionalxLength:number
Defined in: src/mobjects/graphing/ScatterPlot.ts:32
Visual length of the x-axis when auto-building axes. Default: 8
xRange?
optionalxRange: [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?
optionalyLength:number
Defined in: src/mobjects/graphing/ScatterPlot.ts:34
Visual length of the y-axis when auto-building axes. Default: 6
yRange?
optionalyRange: [number,number] | [number,number,number]
Defined in: src/mobjects/graphing/ScatterPlot.ts:30
Y-axis range override as [min, max] or [min, max, step].