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:
- adj
network - column
str 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).- annotation
BunchorDataFrame,optional Result of
annotate()or its node table; computed (withdesignormethod) when omitted.- pos
ndarrayordict,optional Positions (NetworkX-style dictionaries accepted).
- adj
- Returns:
- ax
matplotlibAxes
- ax
Examples using nocad.viz.plot_annotation#
Interoperability: NetworkX, files and role annotations
Interoperability: NetworkX, files and role annotations