Test 三角形: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<graphviz> | |||
digraph { | digraph { | ||
rankdir=TB | rankdir=TB | ||
Line 39: | Line 40: | ||
底层 -> 中层 -> 顶层 [style=invis] | 底层 -> 中层 -> 顶层 [style=invis] | ||
} | } | ||
</graphviz> | |||
<graphviz> | |||
digraph { | |||
rankdir=TB | |||
nodesep=0.05 | |||
node [style=filled] | |||
重罪 [shape=triangle, fillcolor=red, label="重罪", width=0.8] | |||
轻罪 [shape=trapezium, fillcolor=yellow, label="轻罪", width=1.6] | |||
无罪 [shape=trapezium, fillcolor=green, label="无罪", width=2.4] | |||
重罪 -> 轻罪 -> 无罪 [style=invis] | |||
} | |||
</graphviz> | |||
<graphviz> | |||
digraph pyramid { | |||
graph [splines=false, nodesep=0, ranksep=0] | |||
node [style=filled, fixedsize=true, fontcolor=black] | |||
重罪 [shape=triangle, fillcolor=red, width=1.2, height=0.6, label="重罪", pos="1,3!"] | |||
轻罪 [shape=trapezium, fillcolor=yellow, width=2.0, height=0.6, label="轻罪", pos="1,2!"] | |||
无罪 [shape=trapezium, fillcolor=green, width=3.0, height=0.6, label="无罪", pos="1,1!"] | |||
} | |||
</graphviz> | |||
<graphviz> | |||
digraph pyramid { | |||
node [shape=plaintext] | |||
pyramid [ | |||
label=< | |||
<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> | |||
<TR><TD BGCOLOR="red" FIXEDSIZE="TRUE" WIDTH="100" HEIGHT="30">重罪</TD></TR> | |||
<TR><TD BGCOLOR="yellow" FIXEDSIZE="TRUE" WIDTH="160" HEIGHT="30">轻罪</TD></TR> | |||
<TR><TD BGCOLOR="green" FIXEDSIZE="TRUE" WIDTH="220" HEIGHT="30">无罪</TD></TR> | |||
</TABLE> | |||
> | |||
]; | |||
} | |||
</graphviz> |
Latest revision as of 15:55, 23 September 2025



