From: Jon Dean Date: 2006-05-18T04:53:05+09:00 Subject: Re: ruby/gnuplot on windows Joel VanderWerf wrote: > Jon Dean wrote: >>> => nil >> 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 > > Odd, gp400win32.zip is what I downloaded yesterday, and it does seem to > have a bin dir. This is what it unpacks to: > > bin contrib demo install readme README.Windows > bugs Copyright docs news readme.1st > >> 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. > > Oh, you mean you want the gnuplot window to outlive the ruby process > that sent it commands? I don't know of any way to do that on windows, > short of writing a socket-listening wrapper around pgnuplot (drb would > be helpful). > > The window menu I'm talking about should be in the upper left corner of > the plot window. I didn't have any folders in the download. Strange, I'll download it again and see what I get. The weird thing with the plot window closing is that if I run a script file with pure gnuplot (not through ruby), the window should stay open with the -persist option entered on the command line and it doesn't. I can't get the pause command to work either which should hold the window open after the file executes. I'll download the .zip file again and let you know what happens. I'm not getting a window menu in the plot menu. Strange. -j -- Posted via http://www.ruby-forum.com/.