Perl-Sensitive Sunglasses | |
PerlMonks |
How do I print a canvas graphic ?by gerry (Sexton) |
on Oct 20, 2005 at 17:21 UTC ( [id://501744]=perlquestion: print w/replies, xml ) | Need Help?? |
gerry has asked for the wisdom of the Perl Monks concerning the following question:
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
Back to
Seekers of Perl Wisdom
|
|