Hi Thomas,
I'm running Octave 3.2.3 and Gnuplot 4.2.6 on Mac OSX 10.6.1. These
Octave and Gnuplot live in Octave.app and Gnuplot.app respectively.
The plotting commands
x=0:0.1:2*pi;
plot(2*sin(x));
plot3(sin(x), cos(x), x);
work perfectly (via Aquaterm) when I run Octave interactively.
On the other hand I often use Octave and Gnuplot (separately) via
the shebang lines
#!/usr/local/bin/octave
#!/usr/local/bin/gnuplot
The octave and gnuplot files here are symbolic links to the
corresponding files in the Octave and Gnuplot applications. On my
system calling gnuplot from octave via the shebang line:
#!/usr/local/bin/octave
x=0:0.1:2*pi;
plot(2*sin(x));
plot3(sin(x), cos(x), x);
produces nothing. What do I need to add to make this octave/gnuplot
combination work? Am I just missing some output file line?
Regards,
Vic