I need to plot data in real time, reading a file over and over and update a the screen. How to implement reread and replot? require ‘gnuplot’ class Plot Plot a surface of the data in file in realtime def realTimeSurfacePlot (plotFile, title, xLabel, yLabel, zLabel) Gnuplot::open do |gp| Gnuplot::SPlot.new(gp) do |plot| plot.title title plot.set “xlabel %s” %xLabel plot.set “ylabel %s” %yLabel plot
