|
From: <pl...@pi...> - 2007-05-19 15:06:08
|
Hi,
I have just tracked some spurious results down to the fact that plot see=
ms =
to be processing comment lines or rather it is getting called once and =
once only on a file that has only comment lines (and no blank lines).
add_aug(x,y)=3Dassign("area",((started!=3D0) )? 0.0*assign("prev_y",222)=
: =
0.0*( assign("started",1) + assign("prev_y",111) ) );
plot datafile using =
1:(add_aug(strptime("%H:%M",stringcolumn(1))/3600,P( Th4($3-2.0) =
-(Th7($5)-0.52) ))/1) axes x1y2 with lines s f t "aug/10 Wh" \
prev_y is coming out with a value of 111 inidicating that plot called th=
is =
function once.
I'm not sure why it is getting called but x=3D0 which is presumably strp=
time =
failing to interpret one of my comment lines and y gets a large positive=
=
value which is likely the result of feeding zero to my Th functions.
In short it is calling add_aug() with spurious data even though there is=
=
no data lines in the input file.
suggestions please.
TIA.
|