Skip to content

Commit

Permalink
#5 reverted and added elif for plotting unconnected nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaMans committed Jun 25, 2018
1 parent 6833b81 commit 1314813
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 1314813

Please sign in to comment.