How to force node position (x and y) in graphviz

前端 未结 3 1923
抹茶落季
抹茶落季 2020-11-27 15:12

I am trying to force position of nodes. I have x and y coordinates of my nodes and its also directed graph. I can use the rank=same to handle row (y coordinate), but can\'t

3条回答
  •  囚心锁ツ
    2020-11-27 15:38

    I couldn't get the -n flag work with dot -Kfdp.

    I was however able to get it working with neato using the following command:

    neato sample.dot -n -Tpng -o sample.png

提交回复
热议问题