I've written a perl 5.8 client running on W2K that communicates with my perl server module running on each of my 3 Unix Boxes. Each Unix box is running the same C++ application and is set up for load balancing. My client connects via a socket to each box and receives back various statistics on the health of the application for each of the servers.

My perl client then takes the information and creates a canvas to graph the information on. I have been using a screen print utility to capture the graph and print it because I haven't been able to figure out how to print the graphic displayed on the canvas from within the perl module.

The graph I want to print is a typical XY Multi-Line Graph with text information around it. I have 2 arrays where each element in each array represents a minute in time for a 2400 clock - 1440 elements (24*60). Each element in array 1 contains the total number of Transactions processed in that minute of time. The other array is similar, but contains the total number of threads running.

I have looked at CPAN but have been unsuccessful in finding what I need.

Do you know of a way to do this? Is there some utility that I need? Is there a way to save the canvas or graphic in a format that some other graphics program can use?

Your help is greatly appreciated.

a humble perl neophyte


In reply to How do I print a canvas graphic ? by gerry

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.