Forum: Ruby ruby/gnuplot on windows

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jon D. (Guest)
on 2006-05-16 12:38
Using the sine wave example from the home page how to, I've been able to
get gnuplot to generate the plot but it immediately terminates, flashing
only briefly on the screen.  I bypassed the which method and hardcoded
the executable in the gnuplot.rb starting at 44:

def Gnuplot.gnuplot( persist = true )
    #cmd = which( ENV['RB_GNUPLOT'] || 'gnuplot' )
    #cmd += " -persist" if persist
    cmd = "C:\\Gnuplot\\pgnuplot.exe" + " -persist" if persist

It appears that the -persist flag is not being passed to the command
line.  Any thoughts on how to get the -persist flat to function and keep
the graph active long enough for me to view it?
This topic is locked and can not be replied to.