1.

How To Call Gnuplot In A Pipe Or With A Gnuplot-script Doesn't Produce A Plot?

Answer»

Gnuplot can be called by using a perl script.

Following script illustrates:

#!/usr/local/bin/perl -w
open (GP, "|/usr/local/bin/gnuplot -persist") or DIE "no gnuplot";
# force the buffer to flush after every write
use FileHandle;
GP->AUTOFLUSH(1);
print GP,"SET term x11;plot '/tmp/data.dat' with linesn";
close GP

Gnuplot can be called by using a perl script.

Following script illustrates:

#!/usr/local/bin/perl -w
open (GP, "|/usr/local/bin/gnuplot -persist") or die "no gnuplot";
# force the buffer to flush after every write
use FileHandle;
GP->autoflush(1);
print GP,"set term x11;plot '/tmp/data.dat' with linesn";
close GP



Discussion

No Comment Found