Plots the power grid described by the network data dictionary (NDD) onto an already existing axes. Possible plot settings are shown in _default_settings.
Draws a graph for the power grid described by the NDD with options according to the dictionary "settings" (see _default_settings for possible options).
elseifbr_settings["br_status"]=="all"# plot all branches
edges=[(b["f_bus"],b["t_bus"])forbinbranches]
else
br_status=br_settings["br_status"]
throw(ArgumentError("Unknown branch status $br_status."))
end
### Draw edges
drawn_edges=nx.draw_networkx_edges(
G,pos,
edgelist=edges,
width=br_settings["br_lw"],
edge_color=br_settings["br_color"],
alpha=br_settings["br_alpha"]
)
returnG,[],[],nothing
end
#=
Draws branches contained in the NDD with coloring mode "MW-loading", "Mvar-loading" or "MVA-loading". The branches are colored depending on their loading (flow/capacity).