Graphviz:节点内部方向 [英] Graphviz: Node internal orientation

查看:117
本文介绍了Graphviz:节点内部方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下graphviz代码:

The following graphviz code:

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°,这样行将是:

I'd like to rotate the table orientation 90° clockwise, so that the rows will be:

  • hello world将位于顶部
  • f,'c | d | e and b on the row below, 'c|d|e垂直对齐
  • g
  • h
  • hello world will be on top
  • f, 'c|d|eandbon the row below, 'c|d|e aligned vertically
  • g
  • h

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

For example (with the text wrongly oriented!):

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

Is there a way to rotate the node internals without affecting the order of the nodes in the graph?

推荐答案

我玩过HTML COLSPANROWSPAN并得到:

I've played with the HTML COLSPAN and ROWSPAN and got:

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>
    >
];

这篇关于Graphviz:节点内部方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆