Plotting primitives#
Drawing primitives for networks of state variables.
All functions accept an optional ax and return the Axes
they drew on; they never call plt.show(). Roles have fixed colors in every figure
of the package and the book: driver nodes and inputs blue, sensor nodes and outputs
vermilion, nodes that are both purple, matched edges green, other states gray
(Okabe–Ito palette).
Network drawing, role colors and layouts.
Functions#
|
Node positions for a network drawing. |
|
NetworkX-style |
|
Draw a directed network with arrows, self-loops and input/output stubs. |
|
Draw a network with its driver and sensor nodes and, optionally, a matching. |
|
Node colors by role (driver, sensor, both, other). |
|
Legend entries for the role colors. |
Constants#
Okabe–Ito color-blind-safe palette, fixed assignment order. |
|
Fixed colors of node roles and edge kinds. |
|
Layouts accepted by |