Skip to content

Function: addPcolormesh()

ts
function addPcolormesh(plot, opts): PatchesLayer;

Defined in: charts/fields.ts:259

A colour mesh over unevenly spaced cells (matplotlib's pcolormesh).

A Plot.addHeatmap is the faster choice when the grid is uniform — it is one textured quad. This exists for the case a heatmap cannot express: bins of different widths (log-spaced frequency, ragged time buckets) or a warped curvilinear grid.

Parameters

ParameterType
plotPlot
optsPcolormeshOptions

Returns

PatchesLayer

MIT licensed. WebGL2 required.