|
From: János L. <jan...@ya...> - 2010-07-01 14:25:36
|
On Jun 30, 2010, at 5:00 PM, János Löbb wrote: > Hi, > > Having a plot command in a .gp file this way: > > plot ["Jun 01, 2010 00:03:11":"Jun 30, 2010 00:03:04"][] "/Volumes/Data/PROJECTS/Sysmon/outs/workerprocess.out" using 1:( column(2) > 0 ? column(2) : 1) title "Total Worker Requested" with points pointtype 7 pointsize 0.4,"" using 1:( column(2) > 0 ? column(2) : 1) title "Bezier" smooth bezier with lines linetype -1 > > is working fine. > > When I change it to this form: > > plot [$0:$1][] "/Volumes/Data/PROJECTS/Sysmon/outs/workerprocess.out" using 1:( column(2) > 0 ? column(2) : 1) title "Total Worker Requested" with points pointtype 7 pointsize 0.4,"" using 1:( column(2) > 0 ? column(2) : 1) title "Bezier" smooth bezier with lines linetype -1 > > and call the program containing this plot command as: > > gnuplot> call '/Volumes/Data/PROJECTS/Sysmon/gnuplot_cmds/workerprocess_multi.gp' "Jun 01, 2010 00:03:11" "Jun 30, 2010 00:03:04" > "/Volumes/Data/PROJECTS/Sysmon/gnuplot_cmds/workerprocess_multi.gp", line 15: undefined variable: Jun > > > I also tried single quote with no difference. > > What am I doing wrong ? > > János > I found my error. the plot should start with plot["$0":"$1"]....... that is I missed the quotes around the parameter names :-) János |