Developers and Users...
I have been playing around with gnuplot inside of my perl scripts for a
bit now. All is going well except for one thing. When I use splot to
plot "x y z" groups I can use the mouse to move the plot around, ie:
like the viewing angle. This is if I run gnuplot from the terminal. If
I execute gnuplot from inside the script the mouse can not be used to
change the viewing angle. I am starting up gnuplot in the following
way:
open(GNUPLOT, "|gnuplot");
GNUPLOT->autoflush(1);
print GNUPLOT "
set xrange [1:${maxX}]
set xtics (1, 129, 257, 385, 513, 641, 769, 897)
set format y \"%3.0f\"
set title \"${Ltitle}\"
set ylabel \"Average Pedestal\"
set xlabel \"\"
";
if($fullscale == 1) {
print GNUPLOT "
set yrange [0:260]
";
} else {
print GNUPLOT "
set yrange [${minY}:${maxY}]
";
}
print GNUPLOT "
splot '${tmpfile}' using 1:2:3 title \"\" pt 7 ps .5
pause -1
";
getc();
Am I doing something wrong here, or is there something I can add. I
thought that it is due to a strange setting of the display variable but
I checked that it is set to ":0.0". Any ideas?
Justace
|