Time formatted data ought to work with binary I/O but doesn't appear to. In the 4.4 reference manual, the description of binary files indicates that columns are treated the same as for ASCII files. Hence, with the "%s" time format I should be able to plot binary data containing UNIX timestamps. But
set timefmt "%s"
set xdata time
plot '-' binary record=(5) format=%double%double using 1:2 notitle with points
(followed by a 2x5 collection of doubles with first column ranging from 0-1e7 and second column ranging from 0-10) ought to produce a plot over the first four months of 1970. Instead it fails with "warning: Skipping data file with no valid points", followed by "all points y value undefined!" Doing the same plot with the same data, but without the "set timefmt" and "set xdata time" commands produces a valid plot.
What am I missing here? This appears to be either a bug in the time format interpretation code, or a bug in the documentation about the binary format.
Log in to post a comment.