On Fri, May 28, 2010 at 2:51 AM, Pen Ttt <myocean135 / yahoo.cn> wrote:
> IO.popen('gnuplot', 'w') { |io|
> =A0io.puts "plot sin(x)"
> }
> i tested ,it's ok
> but i don't understand why is ('gnuplot', 'w'),why is not ('gnuplot',
> 'r'),
you are writing to the handle, right?
BTW were there not some Ruby bindings for Gnuplot, not sure though.
HTH
R.