graphviz:HTML 节点周围有额外的框?
我正在为 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>>];
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
哦!我解决了一个问题,我使用的是
node [shape = record
,如果我使用 HTML 标签,则record
不合适。从“记录”更改为“纯文本”消除了我的额外框,并解决了我在命名端口方面遇到的一些其他问题。doh! I solved one problem, I was using
node [shape = record
, therecord
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.