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

时间:2016-03-07 08:02:47

标签: 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};
}

1 个答案:

答案 0 :(得分:16)

您只需在子图中添加labeljust="l";即可。