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
Networkas 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) – TheNetworkto visualise.show_children (
bool) – Show attached child components (loads, generators, …) in the parent node’s hover tooltip.use_monee_positions (
bool) – Use storednode.positioncoordinates 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– Aplotly.graph_objects.Figure.