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.set "zlabel %s" %zLabel plot.set "grid" plot.set "pm3d" plot.data = [ Gnuplot::DataSet.new("\""+plotFile+"\"") { |ds| } ] end end end Thank you Lars -- Posted via http://www.ruby-forum.com/.