Visualization

SurfacePlot Block

Visualizes 2D matrix data as a surface

Open SurfacePlot in BlockWerk →

# SurfacePlot Block

Description

The SurfacePlot block accepts a two-dimensional matrix (array of arrays) and renders it as a colour-mapped surface, with the X and Y axes spanning configurable physical ranges. Cell values are mapped to a colour gradient, providing an immediate visual indication of magnitude across the spatial grid.

Common applications include visualising the output of a 2-D lookup table, displaying finite-difference simulation results on a spatial grid, or inspecting the gain surface of a scheduled controller as a function of two scheduling variables.

Parameters

xRange

Comma-separated pair defining the minimum and maximum values of the X axis (e.g. 0,1). The grid columns are distributed evenly over this range. Default: 0,1.

yRange

Comma-separated pair defining the minimum and maximum values of the Y axis (e.g. 0,1). The grid rows are distributed evenly over this range. Default: 0,1.

Examples

2-D lookup table inspection

LookupTable2D → SurfacePlot

Connect a 2-D lookup table block directly to the SurfacePlot to visualise the full gain surface during simulation.

Finite-difference heat map

HeatEquationSolver → SurfacePlot

Feed the flattened matrix output of a spatial PDE solver into the SurfacePlot; set xRange and yRange to match the physical domain extents.

Remarks

See Also