Skip to main content

Interface: ContourPlotOptions

Defined in: src/mobjects/graphing/ContourPlot.ts:11

Options for creating a ContourPlot.

Properties​

axes?​

optional axes: Axes

Defined in: src/mobjects/graphing/ContourPlot.ts:27

Reference axes for coordinate transformation. Optional.


color?​

optional color: string

Defined in: src/mobjects/graphing/ContourPlot.ts:23

Stroke color. Default: '#58c4dd' (Manim blue)


func​

func: ContourField

Defined in: src/mobjects/graphing/ContourPlot.ts:13

The scalar field g(x, y). Contours are the level sets g = level.


levels?​

optional levels: number[]

Defined in: src/mobjects/graphing/ContourPlot.ts:15

The iso levels to draw. Default: [-2, -1, 0, 1, 2]


resolution?​

optional resolution: number

Defined in: src/mobjects/graphing/ContourPlot.ts:21

Grid cells per axis for the marching-squares sampling. Default: 48


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/graphing/ContourPlot.ts:25

Stroke width in pixels. Default: 2


xRange?​

optional xRange: [number, number]

Defined in: src/mobjects/graphing/ContourPlot.ts:17

X range [min, max]. Default: [-5, 5]


yRange?​

optional yRange: [number, number]

Defined in: src/mobjects/graphing/ContourPlot.ts:19

Y range [min, max]. Default: [-5, 5]