graphviz:HTML 节点周围有额外的框?

发布于 2024-08-17 23:40:12 字数 999 浏览 6 评论 0原文

我正在为 graphviz 使用 HTML 节点 根据我之前的问题。为什么外面会有多余的盒子,如何去掉它?另外怎样才能把图变小呢?

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

替代文字

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

alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羅雙樹 2024-08-24 23:40:12

哦!我解决了一个问题,我使用的是 node [shape = record,如果我使用 HTML 标签,则 record 不合适。从“记录”更改为“纯文本”消除了我的额外框,并解决了我在命名端口方面遇到的一些其他问题。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文