sugar has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks, can you please guide me in building a histogram for a given set of X and Y values (x and y values are in 2 different arrays). Thanks Mary.

Replies are listed 'Best First'.
Re: how to build a histogram using perl?
by Anonymous Monk on Sep 03, 2008 at 05:38 UTC
Re: how to build a histogram using perl?
by ady (Deacon) on Sep 03, 2008 at 05:50 UTC
    Greetings!
    Here's some code snippets from one of my apps.
    You'll need the GD::Graph module from CPAN and the two extension modules, if you want to use the min,max,sum and ceil functions.

    Best regards,
    allan dystrup
Re: how to build a histogram using perl?
by zentara (Cardinal) on Sep 03, 2008 at 13:28 UTC
    If you want some realtime display abilities, this will display the GD bar graph in a Tk window, and update it every 2 seconds(adjustable).

    I'm not really a human, but I play one on earth Remember How Lucky You Are