help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave on Mac (Intel): GNUplot problem


From: Stuart Edwards
Subject: Re: Octave on Mac (Intel): GNUplot problem
Date: Wed, 14 Oct 2009 12:39:08 -0400

Interesting .... I have the same problem. I have written some octave scripts with the same octave shebang line and when I run it - nothing. If I run the shebang line (minus the #!) from the command line, octave opens. Then if I start the script it runs fine. But I've never been able to start it 'automatically' as originally intended.

Mac OSX 10.5 an 10.6.1
Octave 3.2.2
Aquaterm 1.0.1
Gnuplot 4.0

Stu


On Oct 14, 2009, at 10:30 AM, Vic Norton wrote:

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

On Oct 14, 2009, at 7:34 AM, Thomas Treichl wrote:

Huub van Niekerk schrieb:
Hi,

I have the latest Octave and GNUplot for Mac installed. Both Octave
and
GNUplot start fine, but when I call either plot or plot3 (e.g.
x=0:0.1:2*pi; plot(2*sin(x)); plot3(sin(x), cos(x), x)) from Octave,
there's no plot-window showing up. Any idea what could be wrong?

Thank you.

Hi,

I think you are talking about the latest Octave.app and Gnuplot.app
available
from Sourceforge? If this is the case then it sounds to me like the
typical
problem that sometimes this happens and I don't know why it happens.
Try to
start gnuplot this way

 GNUTERM=aqua /Applications/Gnuplot.app/Contents/Resources/bin/
gnuplot

and try to plot something with the command

 plot sin(x)/x

Or, maybe AquaTerm should be enabled in your Gnuplot.app. For this
please read
the topic

 Do I have to install AquaTerm.app before I install Gnuplot.app?

in the Readme.html file of gnuplot-4.2.6-*.dmg.

Best regards

 Thomas
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]