【问题标题】:Graphviz forcing nodes to stack vertically despite rankdir=LR尽管 rankdir=LR,Graphviz 强制节点垂直堆叠
【发布时间】:2014-06-04 09:25:15
【问题描述】:

我是 Graphviz 的新手,并尝试使用以下内容从左到右布局一些节点:

digraph g {
graph [ rankdir = "LR" ]; 
node [ fontsize = "16",  fontname="Arial" ]; 
nodesep = 1.0; 
ranksep = 4.0; 

"node0" [ 
label = "<f0>OBJECT0| <f1> Id | <f2> Name" 
shape = "record"  ];

"node1" [ 
label = "<f0>OBJECT1| <f1> Id | <f2> Name"
shape = "record"  ];
"node2" [ 
label = "<f0>OBJECT2| <f1> Id | <f2> Name"
shape = "record"  ];    

"node4" [ 
label = "<f0>OBJECT3| <f1> Id | <f2> Name"
shape = "record"  ];    
** I also have some connectors in here across the nodes **
}

这适用于非常基本的节点,但如果我说一个节点中有 100 行(代表数据库表和字段),则节点垂直堆叠,我所做的任何事情似乎都不会影响该死的东西恢复到水平布局。

任何关于我如何解决问题的建议将不胜感激 - 这个让我完全陷入困境!

干杯 频道

【问题讨论】:

    标签: graphviz dot


    【解决方案1】:

    已解决-需要添加行node0 -> node1 -> node2 -> node3 -> node4 [style=invis]

    【讨论】:

      猜你喜欢
      • 2016-11-29
      • 1970-01-01
      • 2018-05-16
      • 2014-08-02
      • 2019-01-27
      • 2015-01-21
      • 1970-01-01
      • 1970-01-01
      • 2011-01-14
      相关资源
      最近更新 更多