timeline gnuplot generation - make use of buffered input
(cherry picked from commit 772f79a)