标签: bash plot pipe gnuplot stdin
我正在尝试使用gnuplot显示定期打印出数字的程序输出的实时图。
我当前正在跑步:
number_program | gnuplot -p -e 'plot "/dev/stdin" using 0:1 with lines'
执行此操作时,直到我按ctrl-c都不会显示任何图。然后显示绘图窗口。我怎样才能使绘图实时更新?我更喜欢单线。