Calling plotutils from xemacs using Ruby GSL

R

Ruby Mode

------=_Part_2767_3971286.1142097688040
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'm using ruby from Xemacs on OSX. Ruby works well in IRB mode from Xemacs=
,
but I can't call plotutils successfully from Xemacs, even though I know it
is installed. I'm trying to use rubygsl, which also runs fine, except it
can't run plotutils per the example here:

http://rb-gsl.rubyforge.org/screenshot.html#4

The error I get is:

#!/usr/bin/env ruby
require("gsl");
poly=3DPoly[1.5,-1.25,-3.75,0,1];
roots=3Dpoly.solve
[ [5.000e-01 0.000e+00] [-1.000e+00 0.000e+00] [-1.500e+00 0.000e+00] [
2.000e+00 0.000e+00] ]
#<GSL::Vector::Complex:0x701330>
x=3DVector.linspace(-2.5, 2.5, 20);y=3Dpoly.eval(x);
zero=3DVector.calloc(4);
graph([x,y], [roots.real,zero], "-T X -C -g 3 -S 4")
NoMethodError: GNU plotutils required
from (irb):7:in `graph'
from (irb):7

With no windows opening.

Thanks

------=_Part_2767_3971286.1142097688040--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,078
Latest member
MakersCBDBlood

Latest Threads

Top