Skip to content

createNodeLink#nodeColormap

Summary

Node and edge colormaps are independent on a nodelink. Each property accepts a built-in colormap name or a borrowed Colormap instance. Both default to "viridis".

These properties matter when the matching color mode is scalar.

Syntax

NodeLink.nodeColormap: NodeLinkColormap | Colormap
NodeLink.edgeColormap: NodeLinkColormap | Colormap

nodeLink.nodeColormap = "magma";
nodeLink.edgeColormap = "grayscale";
const nodeColormap = nodeLink.nodeColormap;
const edgeColormap = nodeLink.edgeColormap;

Parameters

This API does not take parameters.

Returns

Reading these properties returns the current node or edge colormap selection.

See Also