From r.mcglue at qub.ac.uk Wed Feb 22 12:48:40 2006 From: r.mcglue at qub.ac.uk (Ronan) Date: Wed, 22 Feb 2006 20:48:40 +0000 Subject: [Graph-dev] Chart::Graph::Gnuplot Message-ID: <43FCCE28.4090701@qub.ac.uk> Hi, im trying to get gnuplot working from within perl heres a list of all i can think of that you may need to help me diagnose the problem. running on Splack 10 on an untlra5 sun box. src to my test prog #!/usr/local/bin/perl -w use CGI qw(:standard); use Chart::Graph::Gnuplot qw(gnuplot); #use strict; #use DBI ; print header; print start_html("Daily Stats Frontend"); my @data=[[1,10],[2,20],[3,30],[4,40]]; gnuplot({"output file" => "../icons/hello.png", "output type" => "png"}, [{"title" => "data1","type" => "matrix"},[[1,10],[2,20],[3,30],[4,40]]]); print ""; print ""; HTML SOURCE as displayed by firefox Daily Stats Frontend tail -f error/access logs ==> /var/log/apache/access_log <== 143.117.9.15 - - [22/Feb/2006:18:07:58 +0000] "GET /test.pl HTTP/1.1" 200 385 143.117.9.15 - - [22/Feb/2006:18:07:58 +0000] "GET /icons/hello.png HTTP/1.1" 304 - ==> /var/log/apache/error_log <== invalid output type: png at /var/www/htdocs/test.pl line 13 ls -lrt ../icons/hello.png -rw-r--r-- 1 root root 0 Feb 22 17:27 ../icons/hello.png root at mailstats:/var/www/htdocs# ls -ld ../icons/ drwxrwxr-x 6 root root 12288 Feb 22 17:27 ../icons// root at mailstats:/var/www/htdocs# root at mailstats:/var/www/htdocs# ldd `which gnuplot` libz.so.1 => /usr/lib/libz.so.1 (0x7002c000) libgd.so.2 => /usr/local/lib/libgd.so.2 (0x7004c000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x700a8000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x700d8000) libm.so.6 => /lib/libm.so.6 (0x70114000) libc.so.6 => /lib/libc.so.6 (0x70198000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000) Im completly baffled here what could i be doing wrong??? thanks in advance Ronan -- Ronan McGlue Analyst / Programmer CMC Systems Group Queens University Belfast From astrophysics57 at aol.com Tue Feb 28 10:24:15 2006 From: astrophysics57 at aol.com (astrophysics57@aol.com) Date: Tue, 28 Feb 2006 13:24:15 -0500 Subject: [Graph-dev] Chart::Graph Module Question Message-ID: <8C80AAB50887618-AE8-C11A@mblk-r21.sysops.aol.com> Hello, I have written a perl program that uses Chart::Graph::Gnuplot. When attempting to run the program, however, I get the following error message: gnuplot > set terminal png small color ^ "/tmp/Graph_Gnuplot_344/command.1", line 9: invalid color spec, must be xRRGGBB" I have used the "extra opts" => "set terminal png ." This does not work. What do I need to do here? Thanks, David Pigg Nuclear Physics Research at MSU -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rommie.caida.org/pipermail/graph-dev/attachments/20060228/7491e587/attachment.htm