Skip to content

Function: streamlines() ​

ts
function streamlines(field, opts?): Streamline[];

Defined in: charts/fields.ts:352

Trace streamlines through a vector field with RK4 integration.

Seeds walk a lattice and each line stops when it re-enters a cell another line already occupies, which is matplotlib's trick for spacing them evenly instead of letting them bunch up along attractors.

Parameters ​

ParameterType
fieldVectorField
optsStreamlineOptions

Returns ​

Streamline[]

MIT licensed. WebGL2 required.