|
From: Ethan A M. <merritt@u.washington.edu> - 2006-08-07 03:27:43
|
On Sunday 06 August 2006 02:20 pm, Dmitri A. Sergatskov wrote: > I there any way I can get an old (4.0) behavior with new > gnuplot when plotting data files with missing data? Short answer: Yes. plot 'test1.dat' using ($1):($2) with lines Longer answer: The whole "missing" issue drives me to distraction. No two people expect the same thing from it, so it's no wonder that many bug reports are filed against it. 3.7 and 4.0 did not behave identically, so existing scripts are not an infallible guide either. For what it's worth... Your "NaN" strings *are* being read as legal IEEE format numbers. Using "set datafile missing ..." is not the issue. The issue is what to do when a number is not legal (NaN, Inf, underflow). Plot, or not plot? Increment the line number, or not? Error message? EAM > E.g. consider the file (say "test1.dat") > > # -- begin > 0 1 > 1 0 > NaN NaN > 2 1 > 1 2 > # -- end > > In gnuplot 4.0 > plot "test1.dat" with line > produces plot with two segments. > > With 4.1, first one has to do > set datafile missing "NaN" > (that still would not handle "nan") > but after that > plot "test1.dat" with line > would connect the segments along (1 0) (2 1) line. > > I am not to argue wich way is better (though I would prefer > gnuplot to handle IEEE special numbers automatically), > I am just wondering if this behavior (to connect the segments) > is indeed the expected one (not a bug) and if it is indeed so, > is there any variable I can set to get old style behavior? > > Sincerely, > > Dmitri. > -- > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |