Skip to main content

Interface: DiffScale()

Defined in: packages/sdvplot/src/shots/diff.ts:92

A diff colour function plus the equivalent Plot colour-scale options (for fills and Plot.legend).

DiffScale(diff): string

Defined in: packages/sdvplot/src/shots/diff.ts:93

A diff colour function plus the equivalent Plot colour-scale options (for fills and Plot.legend).

Parameters​

diff​

number | null

Returns​

string

Properties​

plot​

readonly plot: object

Defined in: packages/sdvplot/src/shots/diff.ts:96

clamp​

readonly clamp: boolean

domain​

readonly domain: readonly number[]

interpolate?​

readonly optional interpolate?: "rgb"

pivot?​

readonly optional pivot?: number

range?​

readonly optional range?: readonly string[]

reverse?​

readonly optional reverse?: boolean

scheme?​

readonly optional scheme?: "RdBu"

type​

readonly type: "linear" | "diverging"


stops​

readonly stops: readonly number[]

Defined in: packages/sdvplot/src/shots/diff.ts:95

Diffs to place gradient stops at: 5 across [-D, D] (theme.ts:127-130), or master's own 5 stops.