1

以下graphviz代码:

digraph g {

labelloc="t";
label="Feed creation process";

graph [
rankdir = "LR"
];
node [
fontsize = "16"
shape = "record"
];
edge [];


abc [shape=none, margin=0, rankdir=""
label=<
<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
<TR><TD ROWSPAN="3"><FONT COLOR="red">hello</FONT><BR/>world</TD>
<TD COLSPAN="3">b</TD>
<TD ROWSPAN="3" BGCOLOR="lightgrey">g</TD>
<TD ROWSPAN="3">h</TD>
</TR>
<TR><TD>c</TD>
<TD PORT="here">d</TD>
<TD>e</TD>
</TR>
<TR><TD COLSPAN="3">f</TD>
</TR>
</TABLE>>];
}

给出:

在此处输入图像描述

我想将表格方向顺时针旋转 90°,这样行将是:

  • hello world将在顶部
  • f, 'c|d|e andbon the row below, 'c|d|e垂直对齐
  • g
  • h

例如(文本方向错误!):

在此处输入图像描述

有没有办法在不影响图中节点顺序的情况下旋转节点内部?

4

1 回答 1

1

我玩过 HTMLCOLSPANROWSPAN得到:

abc2 [shape=none, margin=0, orientation=120.0,
label=
    <
    <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
       <TR>
          <TD COLSPAN="3"><FONT COLOR="red">HELLO</FONT><BR/>world</TD>
       </TR>
       <TR>
          <TD ROWSPAN="3">b</TD>
          <TD>c</TD>
          <TD ROWSPAN="3">f</TD>
        </TR>
        <TR>
          <TD PORT="here">d</TD>
        </TR>
        <TR>
          <TD>e</TD>
       </TR>
       <TR>
          <TD COLSPAN="3" BGCOLOR="lightgrey">g</TD>
       </TR>
       <TR>
          <TD COLSPAN="3">h</TD>
       </TR>

    </TABLE>
    >
];

在此处输入图像描述

于 2013-04-17T14:51:21.050 回答