|
From: Jonathan T. <jt...@as...> - 2014-03-19 22:03:43
|
Consider the following datafile:
1.5 0.3
2.5 undef
3.5 0.6
With gnuplot 4.6.3 (full "show version long" output below) I get the
following results:
gnuplot> plot '/tmp/try-alpha.dat'
This plots three points: (1.5,0.3), (1.0,2.5), and (3.5,0.6).
It seems to me that the second of these is wrong: it has an x coordinate
which does not occur anywhere in the data file, and a bogus y coordinate
too. I get the same behavior if I change the "undef" to "foo".
For what it's worth,
gnuplot> plot '/tmp/try-alpha.dat' using 1:2
simply ignores the point-with-non-numeric-y as expected.
Here's the output of 'show version long' for my gnuplot:
gnuplot> show version long
G N U P L O T
Version 4.6 patchlevel 3 last modified 2013-04-12
Build System: OpenBSD amd64
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
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')
Compile options:
-READLINE +LIBREADLINE -HISTORY
-BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE +USER_LINETYPES +STATS
GNUPLOT_DRIVER_DIR = "/usr/local/libexec/gnuplot/4.6"
GNUPLOT_PS_DIR = "/usr/local/share/gnuplot/4.6/PostScript"
HELPFILE = "/usr/local/share/gnuplot/4.6/gnuplot.gih"
gnuplot>
ciao,
--
-- "Jonathan Thornburg [remove -animal to reply]" <jt...@as...>
Dept of Astronomy & IUCSS, Indiana University, Bloomington, Indiana, USA
"There was of course no way of knowing whether you were being watched
at any given moment. How often, or on what system, the Thought Police
plugged in on any individual wire was guesswork. It was even conceivable
that they watched everybody all the time." -- George Orwell, "1984"
|