Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- layoutAnnotationList = []
- for k,p in pos.items():
- x = p[0]
- y = p[1]
- try:
- text = G.node[k]['hostname']
- except:
- text = k
- layoutAnnotationList.append( { 'x':x, 'y':y, 'text':text } )
- layout = { 'annotations': layoutAnnotationList }
- layout = { 'annotations': layoutAnnotationList, 'updatemenus':layoutButtons }
Add Comment
Please, Sign In to add comment