Skip to main content

Interface: AxesOptions

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

Options for creating Axes

Extended by​

Properties​

axisConfig?​

optional axisConfig: Partial<NumberLineOptions>

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

Common configuration for both axes


color?​

optional color: string

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

Stroke color for axes. Default: the active theme's fill color


tipLength?​

optional tipLength: number

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

Length of arrow tips. Default: 0.25


tips?​

optional tips: boolean

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

Whether to include arrow tips on axes. Default: true


xAxisConfig?​

optional xAxisConfig: Partial<NumberLineOptions>

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

Configuration specific to x-axis (overrides axisConfig)


xLength?​

optional xLength: number

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

Visual length of the x-axis. Default: 10


xRange?​

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

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

X-axis range as [min, max] or [min, max, step]. Default: [-5, 5, 1]


yAxisConfig?​

optional yAxisConfig: Partial<NumberLineOptions>

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

Configuration specific to y-axis (overrides axisConfig)


yLength?​

optional yLength: number

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

Visual length of the y-axis. Default: 6


yRange?​

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

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

Y-axis range as [min, max] or [min, max, step]. Default: [-3, 3, 1]