nocad.viz.plot_annotation#

nocad.viz.plot_annotation(adj, column, annotation=None, pos=None, ax=None, labels=None, node_size=240, title=None, legend=True, cmap=None, design=None, method='path_finding')[source]#

Network with every node colored by a column of the annotation table.

Parameters:
adjnetwork
columnstr

A column of nocad.annotation.annotate() ("io_role", "control_role", "driver_type", "control_cactus", "scc", "control_depth", …). Text and boolean columns are drawn with fixed categorical colors, numeric columns with a sequential colormap (-1, unreachable, in white).

annotationBunch or DataFrame, optional

Result of annotate() or its node table; computed (with design or method) when omitted.

posndarray or dict, optional

Positions (NetworkX-style dictionaries accepted).

Returns:
axmatplotlib Axes

Examples using nocad.viz.plot_annotation#

Interoperability: NetworkX, files and role annotations

Interoperability: NetworkX, files and role annotations