LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tree to picture (draw tree).

You can specify SVG output and use some XPath.  But I usually put in a fake URL in the node attribute and let it generate an image map (I assume you are familiar with how those are used to map links to image areas in HTML).  For example I put 'xxx.com' for the default URL attribute by adding URL='xxx.com' to the node line in the example.  Then I call dot a second time with cmapx_np for the output format instead of png and get this output:

 

<map id="test_graph" name="test_graph">
<area shape="rect" id="node1" href="xxx.com" title="00001" alt="" coords="185,5,279,53"/>
<area shape="rect" id="node2" href="xxx.com" title="01024" alt="" coords="127,101,220,149"/>
<area shape="rect" id="node3" href="xxx.com" title="01218" alt="" coords="244,101,337,149"/>
<area shape="rect" id="node4" href="xxx.com" title="01130" alt="" coords="185,197,279,245"/>
<area shape="rect" id="node5" href="xxx.com" title="01112" alt="" coords="303,197,396,245"/>
<area shape="rect" id="node6" href="xxx.com" title="01074" alt="" coords="101,293,195,341"/>
<area shape="rect" id="node7" href="xxx.com" title="01016" alt="" coords="219,293,312,341"/>
<area shape="rect" id="node10" href="xxx.com" title="01232" alt="" coords="261,389,355,437"/>
<area shape="rect" id="node8" href="xxx.com" title="01019" alt="" coords="5,389,99,437"/>
<area shape="rect" id="node9" href="xxx.com" title="01141" alt="" coords="123,389,216,437"/>
</map>

 You can use cmapx to get a better approximation to the ellipses, the np option uses rectangles which I assume is sufficient.

Message 11 of 12
(687 Views)

Nice, thanks.

0 Kudos
Message 12 of 12
(673 Views)