|
From: kumar <kum...@ho...> - 2007-04-03 11:30:14
|
Hi,
Looks like I am not having much luck here. I am creating the gnuplot commands
through a perl program and launching the gnuplot program using the system call.
Also for the plot that comes up hitting m toggles the mouse coordinate display
in the bottom and I am unable to do other operations like zoom etc. The mouse
coordinates for the time still appears in scientific notation.
# Make the gnu plot commands file
open fileOUT, ">gnu.cmds";
print fileOUT "set title \"Price vs Date\"\n";
print fileOUT "set xlabel \"Time\"\n";
print fileOUT "set xdata time\n";
print fileOUT "set timefmt \"%d/%b/%Y\"\n";
print fileOUT "set terminal x11\n";
print fileOUT "set nologscale\n";
print fileOUT "set key outside\n";
print fileOUT "set grid xtics mxtics ytics mytics\n";
print fileOUT "set data style linespoints\n";
print fileOUT "set mouse mouseformat 4\n";
print fileOUT "plot \"plt.dat\" using 1:2 smooth unique";
# call gnuplot
system("gnuplot -persist -geometry 1000x400 gnu.cmds");
Thanks in advance...
kumar
|