Menu

Nodes with negative coordinates

Help
hasii
2020-03-22
2020-04-04
  • hasii

    hasii - 2020-03-22

    I created a graph with a few nodes. Used the 'Hierarchical Tree (R-T Extended)' layout. I exported the graph to .gml to use in another system. The nodes have negative coordinates; Is there a way to avoid this?

    I guess by that I mean avoid using cartesian coordinates

     

    Last edit: hasii 2020-03-24
  • Antoine Lambert

    Antoine Lambert - 2020-04-04

    If you want to modify node coordinates to be all positive, you can do a layout translation
    using Python. Simply enter those instructions in the Tulip Python REPL:

    bb = tlp.computeBoundingBox(graph)
    graph['viewLayout'].translate(bb[0]*-1)
    
     
  • hasii

    hasii - 2020-04-04

    This works like a champ. Thank you very much

     

Log in to post a comment.