plot_networkx#
- plot_networkx(network, plot_throats=True, labels=None, colors=None, scale=1, ax=None, alpha=1.0)[source]#
Creates a pretty 2D plot for 2D OpenPNM networks.
- Parameters:
network (Network)
plot_throats (bool, optional) – Plots throats as well as pores, if True.
labels (list, optional) – List of OpenPNM labels
colors (list, optional) – List of corresponding colors to the given labels.
scale (float, optional) – Scale factor for size of pores.
ax (matplotlib.Axes, optional) – Matplotlib axes object
alpha (float, optional) – Transparency value, 1 is opaque and 0 is transparent