14

How do I position the label for subgraph cluster to appear at it's left instead of being centered?

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};
}
chaimp
  • 16,897
  • 16
  • 53
  • 86
  • 2
    Btw I get errors when separating nodes with simple commas as in the last line - I replaced them with semicolons. – marapet Mar 07 '16 at 08:54

1 Answers1

32

You may simply add labeljust="l"; within your subgraph.

marapet
  • 54,856
  • 12
  • 170
  • 184