plot_tutorial¶
- openpnm.topotools.plot_tutorial(network, font_size=12, line_width=2, node_color='b', edge_color='r', node_size=500)[source]¶
Generate a network plot suitable for tutorials and explanations.
- Parameters
network (GenericNetwork) – The network to plot, should be 2D, since the z-coordinate will be ignored.
font_size (int) – Size of font to use for labels.
line_width (int) – Thickness of edge lines and node borders.
node_color (str) – Color of node border.
edge_color (str) – Color of edge lines.
node_size (int) – Size of node circle.
- Returns
g
- Return type
NetworkX plot object