Skip to content

Commit

Permalink
bugfix in ext grid plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrauz authored and sdrauz committed Oct 27, 2021
1 parent 983c111 commit f8f1335
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandapower/plotting/simple_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ def simple_plot(net, respect_switches=False, line_width=1.0, bus_size=1.0, ext_g

# create ext_grid collections
eg_buses_with_geo_coordinates = set(net.ext_grid.bus.values) & set(net.bus_geodata.index)
if len(eg_buses_with_geo_coordinates) > 0:
sc = create_ext_grid_collection(net, size=ext_grid_size, orientation=0, ext_grids=eg_buses_with_geo_coordinates)
# sc = create_bus_collection(net, eg_buses_with_geo_coordinates, patch_type="rect",
# size=ext_grid_size, color=ext_grid_color, zorder=11)
if len(net.ext_grid) > 0:
sc = create_ext_grid_collection(net, size=ext_grid_size, orientation=0,
ext_grids=net.ext_grid.index,
zorder=11)
collections.append(sc)

# create trafo collection if trafo is available
Expand Down

0 comments on commit f8f1335

Please sign in to comment.