punkish has asked for the wisdom of the Perl Monks concerning the following question:
Update: added sample code on Anonymonk's castigation --
use GraphViz; my $g = GraphViz->new( directed => 1, layout => 'circo', ratio => 'compress', width => 6, height => 6, node => {shape => 'ellipse'}, ); .. add nodes and edges .. my $image = 'foo'; open OUT_FILE, ">$image.png" or die $!; binmode (OUT_FILE); $g->as_png(\*OUT_FILE); close OUT_FILE; my $cmap = $g->as_cmapx; print <<END; Content-Type: text/html\n\n <html> <head> <title>test</title> $cmap </head> <body> <img src="$image.png" border="0" usemap="#test"> </body> </html> END
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with GraphViz module
by jeteve (Pilgrim) on Sep 18, 2006 at 11:13 UTC | |
by jeteve (Pilgrim) on Sep 18, 2006 at 11:18 UTC | |
|
Re: Problems with GraphViz module
by Util (Priest) on Sep 18, 2006 at 06:12 UTC | |
|
Re: Problems with GraphViz module
by Anonymous Monk on Sep 17, 2006 at 11:17 UTC |