Graphviz
Jump to navigation
Jump to search
Beautify Edges
Edge Attributes
| label | arrow | other |
|---|---|---|
|
arrowhead arrowsize arrowtail color colorscheme comment constraint decorate dir fillcolor fontcolor fontname fontsize id len lhead ltail minlen nojustify penwidth pos samehead sametail showboxes target tooltip weight
Edge label
All kinds of labels
| label | xlabel | headlabel | taillabel |
|---|---|---|---|
Difference between label and xlabel 1
Attribute label works not good as expected while using in subgraph.
| label | xlabel | label in subgraph | xlabel in subgraph |
|---|---|---|---|
Difference between label and xlabel 2 (constraint=false)
- The label is gone.
- Space of xlabel is not enough.
| label | |
|---|---|
| xlabel | |
| xlabel with minlen=4 |
|
| label in subgraph |
|
| xlabel in subgraph |
|
| xlabel in subgraph with minlen=4 |
Direction of subgraph
Position of xlabel
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories Fontconfig error: No writable cache directories Fontconfig error: No writable cache directories failed at node 9[1] dot: maze.c:313: chkSgraph: Assertion `np->cells[1]' failed. Aborted (core dumped)
digraph poxl {
// options
// theme = warm
// usage =
// default settings of graphs
graph [
rankdir = LR,
color = "#804000",
bgcolor = "#fffff7",
fontcolor = "#000000",
fontsize = 12,
style = dashed,
gradientangle = 65,
splines = ortho,
];
// default settings of nodes
node [
shape = box,
style = "filled,rounded",
height = 0.3,
fontsize = 10,
// theme
color = "#c07000",
fontcolor = "#000000",
fillcolor = "#ffffff:#ffffc0",
gradientangle = 295 // left, top -> right, bottom
];
// default settings of edges
edge [
color = "#704000",
fontcolor = "#704000",
fontsize = 10,
arrowsize = 0.6
];
// nodes, edges, and clusters
A -> B [xlabel="xlabel", headport="n", tailport="s"];
}