Skip to content

Commit

Permalink
use bus voltage results in create_bus_collection if z is None
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupka committed Jun 18, 2020
1 parent af04313 commit df77d11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pandapower/plotting/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ def create_bus_collection(net, buses=None, size=5, patch_type="circle", color=No
pc = _create_node_collection(buses, coords, size, patch_type, color, picker, infos, **kwargs)

if cmap is not None:
if z is None:
z = net.res_bus.vm_pu.loc[buses]
add_cmap_to_collection(pc, cmap, norm, z, cbar_title)

return pc
Expand Down

0 comments on commit df77d11

Please sign in to comment.