maybe the idea of a %colorhash could be refined... I'm thinking that there is not a good way to indicate a range as a key

my $color = "lightgrey"; while (<DATA>) # chomp and split next if (impact = 0); $plot->add_node($idname, label => $idname"); # parent node if ($impact in range(1..10){ $plot->add_edge($idname => $fooname, color => "darkblue"); } elsif ($impact in range(11..30){ $plot->add_edge($idname => $fooname, color => "blue"); } elsif ($impact in range(31..50){ $plot->add_edge($idname => $fooname, color => "cyan"); } # etc ... else { $plot->add_edge($idname => $fooname, color => "red"); } } # we close the while loop # and create the plot...

we can choose a range of custom colors from blue to red, white to black or something like this. And we could also wish to ignore all nodes with an impact of, for example, <40

The final plot will be typically very big, thus to ignore some low impact nodes can be a good idea

For the same reason a vector (svg) file is a good output extension. pdf is also good, you can zoom it a selection a lot, but you will need to convert an eps to a pdf, and can get lost in the process.

Of course, there are caveats: The big files with thousands of nodes are always a little problematic creature for viewing purposes, I really wish to be able to fit all the scaled plot in the firefox or inkscape screen

And you need always a lot of patience when you try to create a plot like this. It takes some time to compile, (in fact can take a LOT of time with big node nets) but we can't be very fussy when we try to push thousands of nodes connected by thousands of lines in a single plot


In reply to Re^5: Bucketing,Slicing and Reporting data across multiple dimensions by pvaldes
in thread Bucketing,Slicing and Reporting data across multiple dimensions by Voronich

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.