Dear Monks,
I am playing around with some statistics in Perl and I seem to have a (probably) very simple problem. In this code:
use GD::Graph::boxplot; $labels = ["one", "two", "three", "four", "five"]; # since 'do_stats => 0', data are [mean, lowest, lower-%, median, uppe +r-%, highest] # where lower-% and upper-% are the bottom and top of the box $one = [ [-10, -100, -50, -20, 40, 100], [20, 0, 10, 15, 25, 35], [50, -10, 35, 45, 75, 110], [80, 40, 55, 70, 100, 105], [110, -40, 55, 90, 120, 140] ]; $two = [ [45, -100, 20, 55, 80, 140], [55, -40, 30, 50, 70, 90], [40, -10, 35, 41, 45, 70], [50, -120, -10, 35, 75, 150], [60, 35, 50, 65, 70, 80] ]; $three = [ [0, -25, -18, 3, 20, 32], [0, -15, -10, 2, 17, 22], [0, -12, -9, -1, 7, 10], [0, -45, -28, -4, 25, 42], [0, -10, -7, -1, 5, 8] ]; @data = ( $labels, $one, $two, $three ); $my_graph = new GD::Graph::boxplot(640, 480); $my_graph->set( x_label => 'X-Label', y_label => 'Y-Label', title => 'Title', do_stats => 0, symbolc => 'black', y_min_value => -150, y_max_value => 200 ); # Output the graph $gd = $my_graph->plot(\@data); open(IMG, '>sample03.png') or die $!; binmode IMG; print IMG $gd->png;

can you add something so that my image is not transparent? I can't see anything when it is created..

In reply to No transparency in png image by Anonymous Monk

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.