Simple Plotting
The function simple_plot() can be used for simple plotting. For advanced possibilities see the tutorial.
- pandapower.plotting.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_gens=False, plot_sgens=False, load_size=1.0, gen_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', dcline_color='c', trafo_color='k', ext_grid_color='y', switch_color='k', library='igraph', show_plot=True, ax=None, bus_dc_size=1.0, bus_dc_color='m', line_dc_color='c', vsc_size=4.0, vsc_color='orange')
Plots a pandapower network as simple as possible. If no geodata is available, artificial geodata is generated. For advanced plotting see the tutorial
- Parameters:
network. (**net** - The pandapower format)
**respect_switches** (bool, False) – This Flag is ignored if plot_line_switches is True
**line_width** (float, 1.0)
**bus_size** (float, 1.0) – The value bus_size is multiplied with mean_distance_between_buses, which equals the distance between the max geocoord and the min divided by 200. mean_distance_between_buses = sum((net.bus.geo.max() - net.bus.geo.min()) / 200)
**ext_grid_size** (float, 1.0) – Note: ext_grids are plotted as rectangles
**trafo_size** (float, 1.0)
**plot_loads** (bool, False)
**plot_gens** (bool, False)
**plot_sgens** (bool, False)
**load_size** (float, 1.0)
**sgen_size** (float, 1.0)
**switch_size** (float, 2.0)
**switch_distance** (float, 1.0)
**plot_line_switches** (bool, False)
**scale_size** (bool, True)
**bus_color** (String, colors[0])
**line_color** (String, 'grey')
**dcline_color** (String, 'c')
**trafo_color** (String, 'k')
**ext_grid_color** (String, 'y')
**switch_color** (String, 'k')
**library** (String, "igraph") – missing geodata). “igraph” to use igraph package or “networkx” to use networkx package.
**show_plot** (bool, True)
**ax** (object, None)
- Returns:
ax - axes of figure