Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

graphviz: HTML nodes have extra box around it?

Tags:

graphviz

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

like image 769
Jason S Avatar asked Jan 15 '10 15:01

Jason S


1 Answers

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.

like image 105
Jason S Avatar answered Sep 28 '22 16:09

Jason S