|
From: <pl...@pi...> - 2016-06-14 11:25:26
|
On 14/06/16 09:43, pl...@pi... wrote: > > I have a data csv datafile which uses -99.99 as it missing data value. > > with the following settings the 'missing' data are getting plotted. > > set datafile separator "," > set datafile missing "-99.99" > > > show datafile missing > > "-99.99" in datafile is interpreted as missing value > > > As a wild guess I tried the following and the missing data now get > correctly removed. > > set datafile missing "-99.99," > > > This seems to be an illogical order of parsing. > > Surely the data line needs to be parsed into its constituent data > columns before trying to detect the missing data string. > > Regards, Peter > > > gnuplot> show version > > G N U P L O T > Version 5.0 patchlevel 1 last modified 2015-06-07 > > Copyright (C) 1986-1993, 1998, 2004, 2007-2015 > Thomas Williams, Colin Kelley and many others > > gnuplot home: http://www.gnuplot.info > faq, bugs, etc: type "help FAQ" > immediate help: type "help" (plot window: hit 'h') > > > Just to complete this here is a sample line from the file displaying this bug. 1958, 06, 21351, 1958.4548, -99.99, -99.99, 317.25, 315.14, 317.25, 315.14 It seems that the data is being parsed into fields using the default space delimiter when looking for the "missing" string. It should be using proper user-defined delimiter. Peter. |