如何将graphviz子图集的标签定位在左侧?

cha*_*imp 6 graphviz subgraph

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

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};
}
Run Code Online (Sandbox Code Playgroud)

mar*_*pet 17

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

  • 人们可能还想使用 `labelloc="b";` 将标签设置到子图中的底部 (4认同)