Skip to main content

Class: ContourFill<ArrayType, GridType, MapType>

Defined in: Fill.ts:263

A filled contoured field

Example

// Create a field of filled contours with the provided color map
const fill = new ContourFill(wind_speed_field, {cmap: color_map});

Extends

  • PlotComponentFill<ArrayType, GridType, MapType>

Type Parameters

Type Parameter
ArrayType extends TypedArray
GridType extends StructuredGrid
MapType extends MapLikeType

Constructors

Constructor

new ContourFill<ArrayType, GridType, MapType>(field, opts): ContourFill<ArrayType, GridType, MapType>

Defined in: Fill.ts:270

Create a filled contoured field

Parameters

ParameterTypeDescription
fieldRawScalarField<ArrayType, GridType>The field to create filled contours from
optsContourFillOptionsOptions for creating the filled contours

Returns

ContourFill<ArrayType, GridType, MapType>

Overrides

PlotComponentFill<ArrayType, GridType, MapType>.constructor

Properties

PropertyModifierTypeInherited fromDefined in
cmap_mag_filterprotectednull | numberPlotComponentFill.cmap_mag_filterFill.ts:84
image_mag_filterprotectednull | numberPlotComponentFill.image_mag_filterFill.ts:83
optsreadonlyRequired<ContourFillOptions>PlotComponentFill.optsFill.ts:76

Methods

updateField()

updateField(field, mask?): Promise<void>

Defined in: Fill.ts:278

Update the data displayed as filled contours

Parameters

ParameterTypeDescription
fieldRawScalarField<ArrayType, GridType>The new field to display as filled contours
mask?Uint8Array-

Returns

Promise<void>

Overrides

PlotComponentFill.updateField