in reply to Graphing Module for Windows XP
I would advice gnuplot, or rather wgnuplot because you use Windows. Beware, there are lots of modules on CPAN for working with gnuplot but they donīt work well with Windows or donīt work at all with Windows. Fortunately itīs simple to generate gnuplot parameter files with plain Perl. You can generate a file containing the to be plotted data, i.e. the x,y values.
QED example (untested): use Perl to generate a gnuplot.gp file containing all the stuff gnuplot needs to know.
set datafile separator "," set xdata time set timefmt "%Y-%m-%dT%H:%M:%S" set term push set terminal png medium size 1200 800 set output './thePlot.png' plot [][-10:40] 'thePlot.csv' using 1:80 title "your title" with line +s title "plot title" with lines; set output set term windows
After you have generated you call wgnuplot from the Perl script, something like:
@args = ("gnuplot",$plot_parameters_file); system(@args) == 0 or die "gnuplot failed: $?";
HTH
|
|---|