plot_networkx

openpnm.topotools.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 (GenericNetwork) –

  • 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