labeljust

Justification for graph & cluster labels

type: string, default: "c"

  • If labeljust=r, the label is right-justified within bounding rectangle
  • If labeljust=l, left-justified
  • Else the label is centered.

Note that a subgraph inherits attributes from its parent. Thus, if the root graph sets labeljust=l, the subgraph inherits this value.

Graph label justifications
digraph {
  label="l"
  labeljust=l
  a
}
Graph label justifications
digraph {
  label="r"
  labeljust=r
  b
}
Cluster label justifications
digraph {
  subgraph cluster_l {
    label="l"
    labeljust=l
    a
  }
  subgraph cluster_c {
    label="c"
    labeljust=c
    b
  }
  subgraph cluster_r {
    label="r"
    labeljust=r
    c
  }
}
Valid on:
  • Graphs
  • Clusters

Search the Graphviz codebase for "labeljust"