开发者

graphviz: HTML nodes have extra box around it?

开发者 https://www.devze.com 2022-12-16 18:03 出处:网络
I\'m using HTML nodes for graphviz per my previous question. Why do I get the extra box around the outside, and how do I get rid of it? Also how do I 开发者_JAVA百科make the figure smaller?

I'm using HTML nodes for graphviz per my previous question. Why do I get the extra box around the outside, and how do I get rid of it? Also how do I 开发者_JAVA百科make the figure smaller?

 digraph g {
     node [shape = record,height=0.08];
     node1[label = <
   <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
     <TR>
        <TD ROWSPAN="3">hello<BR/>world</TD>
        <TD COLSPAN="3">b</TD>
        <TD ROWSPAN="3">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>>];
   }

graphviz: HTML nodes have extra box around it?


doh! I solved one problem, I was using node [shape = record, the record is not appropriate if I'm using HTML labels. Changing from "record" to "plaintext" got rid of my extra box and fixed some other problems I was having with named ports.

0

精彩评论

暂无评论...
验证码 换一张
取 消