The function simple_plot() can be used for simple plotting. For advanced possibilities see the tutorials
simple_plot(net, respect_switches=False, line_width=1.0, bus_size=1.0, ext_grid_size=1.0, trafo_size=1.0, plot_loads=False, plot_sgens=False, load_size=1.0, sgen_size=1.0, switch_size=2.0, switch_distance=1.0, plot_line_switches=False, scale_size=True, bus_color='b', line_color='grey', trafo_color='k', ext_grid_color='y', switch_color='k', library='igraph', show_plot=True)¶
Plots a pandapower network as simple as possible. If no geodata is available, artificial geodata is generated. For advanced plotting see the tutorial
- net - The pandapower format network.
respect_switches (bool, False) - Respect switches if artificial geodata is created.
This Flag is ignored if plot_line_switches is True
line_width (float, 1.0) - width of lines
bus_size (float, 1.0) - Relative size of buses to plot.
The value bus_size is multiplied with mean_distance_between_buses, which equals the distance between the max geoocord and the min divided by 200. mean_distance_between_buses = sum((net[‘bus_geodata’].max()
- net[‘bus_geodata’].min()) / 200)
ext_grid_size (float, 1.0) - Relative size of ext_grids to plot.See bus sizes for details. Note: ext_grids are plottet as rectangles
trafo_size (float, 1.0) - Relative size of trafos to plot.
load_size (float, 1.0) - Relative size of loads to plot.
sgen_size (float, 1.0) - Relative size of sgens to plot.
switch_size (float, 1.0) - Relative size of switches to plot. See bus size for details
switch_distance (float, 1.0) - Relative distance of the switch to its corresponding bus. See bus size for details
plot_line_switches (bool, False) - Flag if line switches are plotted
scale_size (bool, True) - Flag if bus_size, ext_grid_size, bus_size- and distance will be scaled with respect to grid mean distances
bus_color (String, colors) - Bus Color. Init as first value of color palette. Usually colors = “b”.
line_color (String, ‘grey’) - Line Color. Init is grey
trafo_color (String, ‘k’) - Trafo Color. Init is black
ext_grid_color (String, ‘y’) - External Grid Color. Init is yellow
switch_color (String, ‘k’) - Switch Color. Init is black
plot_show (bool, True) - Shows plot at the end of plotting
- ax - axes of figure