how to plot stdin from terminal?
Try the following:
./program_dumping_numbers | gnuplot -p -e 'plot "/dev/stdin" using 0:1 with lines'
where 0 is virtual line number, 1 is column number, "with lines" means that continues line instead of just points
I would highly recommend ttyplot, you can build live graphs directly in the terminal, reading data from STDIN