monee visualization

Annotated interactive graph visualization for Network.

Entry point: plot_network().

monee.visualization.visualization.plot_network(network: monee.model.network.Network, title: str | None = None, show_children: bool = True, use_monee_positions: bool = False, write_to: str | None = None)[source]

Plot a Network as an annotated interactive graph.

Nodes are colored by energy-carrier type (electricity, heat/water, gas, coupling point). Branch midpoints show compact parameter labels. Hovering over any element reveals the full set of scalar model parameters.

Parameters:
  • network (monee.model.network.Network) – The Network to visualise.

  • title (str | None) – Figure title. Defaults to "Network".

  • show_children (bool) – Show attached child components (loads, generators, …) in the parent node’s hover tooltip.

  • use_monee_positions (bool) – Use stored node.position coordinates instead of the automatic graph layout.

  • write_to (str | None) – Optional path to export the figure (PDF / PNG / SVG).

Returns:

plotly.graph_objs._figure.Figure – A plotly.graph_objects.Figure.