Graphviz: Difference between revisions
Jump to navigation
Jump to search
(→lp) |
(→lp) |
||
| Line 214: | Line 214: | ||
<quickgv name="G6" theme="warm" showdot="true"> | <quickgv name="G6" theme="warm" showdot="true"> | ||
layout="circo"; | layout="circo"; | ||
A1 -> B1 [headlabel="label",head_lp=" | A1 -> B1 [headlabel="label",head_lp="10,0"]; | ||
</quickgv> | </quickgv> | ||
Revision as of 03:49, 4 March 2019
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
lp
digraph G6 {
// 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
layout="circo";
A1 -> B1 [headlabel="label",head_lp="10,0"];
}