From: <pl...@pi...> - 2007-05-20 02:45:30
|
On Sat, 19 May 2007 17:08:17 +0200, <pl...@pi...> wrote: > Hi, > > I have just tracked some spurious results down to the fact that plot = > seems > 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",22= 2) : > 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 = = > this > function once. > > I'm not sure why it is getting called but x=3D0 which is presumably = > strptime > failing to interpret one of my comment lines and y gets a large positi= ve > 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. > > oops , my bad. One comment line had lost it's # . Sorry for the misleading post. regards. |