From: Jon Dean Date: 2006-05-18T04:07:00+09:00 Subject: Re: ruby/gnuplot on windows Joel VanderWerf wrote: > I've never used this particular ruby-gnuplot library, but the following > works for me with gnuplot 4.0: > > C:\prj\gnuplot\bin>irb > irb(main):001:0> gp = "pgnuplot" > => "pgnuplot" > irb(main):002:0> pi = IO.popen(gp, "w") > => # > irb(main):003:0> pi.puts "plot sin(x)" > => nil > > The plot window stays up and lets you manipulate it with the mouse. Just > keep the pipe open. > > One small advantage of windows gnuplot is that if you go to the window > menu (?) in the upper left corner, and select "options", you can print > and do other neat stuff. > > My experience was that the -persist flag wasn't necessary on windows. What download of gnuplot 4.0 for windows did you use? I used the gp400win32.zip which didn't have a bin directory. I ran the same command through irb and it works like you said because its in interactive mode. I also don't appear to have a window menu. Is that in the graph window or the command line window? Maybe the download wasn't good. Anyway, I would like to run scripts through the command line and not enter it each time through irb. That way, the persist flag becomes necessary but I can't get it to work. Thanks for the help. -j -- Posted via http://www.ruby-forum.com/.