This method requires gnuplot.
print module after the node whose output you want to plot.in input to the node’s output buffer.file input to the name of the data file that we will plot, e.g
buffer.dat.gnuplot: $ gnuplot.plot "buffer.dat" with lines.You can plot several buffers at once with:
gnuplot> plot "buf1.dat" with lines, "buf2.dat" with lines, "buf3.dat" with lines
See gnuplot’s documentation for more advanced uses, like saving to a PNG file,
selecting the range, setting titles and so on.