Skip to content

Commit

Permalink
Merge pull request #7 from RWTH-EBC/issue5_visuals
Browse files Browse the repository at this point in the history
#5 reverted and added elif for plotting unconnected nodes
  • Loading branch information
marcusfuchs authored Jul 3, 2018
2 parents 6833b81 + 1314813 commit d407d90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uesgraphs/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def _place_text(self, element):
'--',
color='black',
alpha=0.7)
elif len(neighbors) == 0:
text_pos = self.uesgraph.node[node]['position']
else:
neighbor_pos = self.uesgraph.node[neighbors[0]]['position']

Expand Down

0 comments on commit d407d90

Please sign in to comment.