At 7:35 PM -0700 2/15/11, Chris Stinemetz wrote:
I am interested in creating a cgi perl script that I can publish on the web that will tie into a mysql database and create a x,y axis graph based on data selection. Any suggestions are greatly appreciated.

One method is to use gnuplot. Write out your x,y data to a file, fork gnuplot, and send it commands to plot the data and save as a PNG file. Then, return an HTML page that displays the PNG file as an image.

There are CPAN modules to help you control gnuplot. However, it is easy enough to send it commands using a pipe (see perldoc -f open). It is even easier to write out the gnuplot commands to another file and tell it to execute those commands.

--
Jim Gibson
j...@gibson.org

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to