【问题标题】:GraphViz fixedsize=shape not workingGraphViz 固定大小=形状不工作
【发布时间】:2015-01-28 08:43:18
【问题描述】:

节点属性 fixedsize=shape 似乎不适用于我的 GraphViz 图。例如,这个:

digraph Automaton {
  rankdir=LR
  node [shape=circle fixedsize=shape label=""]
  0;
  1 [shape=doublecircle];
  2 [shape=doublecircle label="HELLO_12345"];
  0 -> { 2 } [label="98 (b)"];
  0 -> { 1 } [label="97 (a)"];
  1 -> { 1 } [label="97 (a)"];
}

...产生这个:

我希望标记为 HELLO_12345 的节点被绘制成与其他节点相同的大小。我尝试在该节点的声明中添加fixedsize=shape,但无济于事。

fixedsize=shape 是什么时候添加的? GraphViz 的最新版本似乎是 2.38,但 Ubuntu 14.04 仍然是 2.36 版本。

【问题讨论】:

    标签: graphviz


    【解决方案1】:

    原来 GraphViz 有一个change log。谁想的?是的,fixedsize=shape 是在 2.36.0 版之后和 2.38.0 版之前添加的。我不知道包含此更改的中间版本叫什么(日志没有说明),但这可能解释了为什么它在 Ubuntu 14.04 上不起作用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-31
      • 2019-04-06
      • 2023-03-28
      • 1970-01-01
      • 2012-03-17
      • 2016-08-28
      • 1970-01-01
      • 2019-01-07
      相关资源
      最近更新 更多