pyhgf.plots.networkx.plot_network#

pyhgf.plots.networkx.plot_network(network: Network, figsize=(4, 4), node_size=700, ax=None, scale=1, arrow_size=35)[source]#

Visualization of node network using NetworkX and pydot layout.

Parameters:
networkNetwork

An instance of main Network class.

figsizetuple, optional

Figure size in inches (width, height), by default (4, 4)

node_sizeint, optional

Size of the nodes in the visualization, by default 700

axmatplotlib.axes.Axes, optional

The axes to plot on. If None, creates a new figure, by default None

scalefloat, optional

Scale factor for node positioning, by default 1

arrow_sizeint, optional

Size of the arrows for volatility edges, by default 35

Returns:
matplotlib.figure.Figure

The figure containing the network visualization if ax is None, otherwise returns the NetworkX graph object