Guest User

Untitled

a guest
Jan 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. layoutAnnotationList = []
  2. for k,p in pos.items():
  3. x = p[0]
  4. y = p[1]
  5. try:
  6. text = G.node[k]['hostname']
  7. except:
  8. text = k
  9. layoutAnnotationList.append( { 'x':x, 'y':y, 'text':text } )
  10.  
  11. layout = { 'annotations': layoutAnnotationList }
  12.  
  13. layout = { 'annotations': layoutAnnotationList, 'updatemenus':layoutButtons }
Add Comment
Please, Sign In to add comment