0

I have file like this:

662.0,,9624
663.0,,9625
771.0,9624,
772.0,,9626
912.0,9625,
913.0,,9627
1083.0,9626,
1083.0,,9628
1174.0,9627,
1175.0,,9629

And when I use gnuplit console, it prints as expected:

set datafile separator ',';
plot 'data-exchange.log' using 1:2 pt 7 ps 2, '' using 1:3 pt 7 ps 2;

enter image description here

However, when I do the same when piping, it doesn't plot as expected:

cat data-exchange.log | gnuplot -p -e 'set datafile separator ","; plot "<cat" using 1:2 pt 7 ps 2, "" using 1:3 pt 7 ps 2;'

enter image description here

Not sure why is that...

peetonn
  • 2,942
  • 4
  • 32
  • 49
  • https://stackoverflow.com/questions/4981279/how-to-make-several-plots-from-the-same-standard-input-data-in-gnuplot – choroba Nov 09 '17 at 18:20
  • Possible duplicate of [how to make several plots from the same standard input data in gnuplot?](https://stackoverflow.com/questions/4981279/how-to-make-several-plots-from-the-same-standard-input-data-in-gnuplot) – choroba Nov 09 '17 at 18:21

0 Answers0