Test 三角形: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 55: Line 55:
      
      
     重罪 -> 轻罪 -> 无罪 [style=invis]
     重罪 -> 轻罪 -> 无罪 [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>
</graphviz>

Latest revision as of 15:55, 23 September 2025