pyhgf.plots.networkx.plot_network#
- pyhgf.plots.networkx.plot_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:
network (Network) – An instance of main Network class.
figsize (tuple, optional) – Figure size in inches (width, height), by default (4, 4)
node_size (int, optional) – Size of the nodes in the visualization, by default 700
ax (matplotlib.axes.Axes, optional) – The axes to plot on. If None, creates a new figure, by default None
scale (float, optional) – Scale factor for node positioning, by default 1
arrow_size (int, optional) – Size of the arrows for volatility edges, by default 35
- Returns:
The figure containing the network visualization if ax is None, otherwise returns the NetworkX graph object
- Return type:
matplotlib.figure.Figure