Skip to content

Function: addStreamplot()

ts
function addStreamplot(plot, opts): StreamplotHandle;

Defined in: charts/fields.ts:466

Streamlines of a 2-D vector field (matplotlib's streamplot).

Each traced line becomes its own line layer — evenly spaced seeding keeps that to a few dozen even on a dense field, and it is what lets a line be coloured by its own mean speed.

Parameters

ParameterType
plotPlot
optsStreamplotOptions

Returns

StreamplotHandle

MIT licensed. WebGL2 required.