draw_surfaces#

FrameArtist.draw_surfaces(state=None, field=None, config=None, scale=1.0)#

Draws surfaces on the canvas based on the provided state, field, layer, and configuration.

Parameters#

statedict, np.ndarray, callable, optional

The state of the model, see States. Default is None, in which case the reference state of the model is rendered.

fielddict, optional

A dictionary representing the field values at each node. If provided, the field values will be plotted on the mesh.

configdict, optional

Configuration dictionary for drawing surfaces. If None, a default configuration is used based on the SketchConfig.

scalefloat, optional

Scale factor for the state transformation. Default is 1.0.