Create & Draw Traces

Plotly traces can be created from pandapower networks with the following functions. The traces can be passed as additional_traces (list) to the simple_plotly() function.

Bus Traces

Branch Traces

Draw Traces

Markers with weighted size

The function create_weighted_marker_trace() can be used to create additional traces with markers (patches) for one column in one component table.

Example with load and sgen bubbles:

net = mv_oberrhein()
net.load.scaling, net.sgen.scaling = 1, 1
markers_load = create_weighted_marker_trace(net, elm_type="load", color="red",
                                            marker_scaling=100)
markers_sgen = create_weighted_marker_trace(net, elm_type="sgen", color="green",
                                            marker_scaling=100)
simple_plotly(net, bus_size=1, additional_traces=[markers_load, markers_sgen])