nocad.plotting.plot_network#
- nocad.plotting.plot_network(adj, drivers=(), sensors=(), matching=None, pos=None, ax=None, labels=None, title=None, legend=True, **kwargs)[source]#
Draw a network with its driver and sensor nodes and, optionally, a matching.
- Parameters:
- matching
Matching,optional Its edges are drawn thick and green.
- matching
Examples
>>> import matplotlib >>> matplotlib.use("Agg") >>> from nocad.datasets import load_nocad_example >>> ax = plot_network(load_nocad_example().adj, drivers=[7], sensors=[0, 8])