【问题标题】:How do I position the label of a graphviz subgraph cluster to be on the left?如何将graphviz子图集群的标签定位在左侧?
【发布时间】:2016-06-20 17:08:17
【问题描述】:

如何将子图簇的标签定位在左侧而不是居中?

digraph mygraph {
    test1;

    subgraph cluster_mysubgraph {
        label = "This text should be at the left of the subgraph - not centered!";

        test2;
        test3;
        test4;
        test5;
        test6;
        test7;
    }

    test1 -> {test2, test3, test4, test5, test6, test7};
}

【问题讨论】:

  • 顺便说一句,在最后一行用简单的逗号分隔节点时出现错误 - 我用分号替换了它们。

标签: graphviz subgraph


【解决方案1】:

您可以简单地在子图中添加labeljust="l";

【讨论】:

  • 人们可能还想在带有labelloc="b";的子图中将标签设置为底部
猜你喜欢
  • 1970-01-01
  • 2020-10-21
  • 2021-09-12
  • 2019-11-10
  • 2012-09-23
  • 1970-01-01
  • 2020-09-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多