help-octave
[Top][All Lists]
Advanced

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

Re: Help with plot on Macbook


From: Ben Abbott
Subject: Re: Help with plot on Macbook
Date: Sat, 03 Jan 2009 18:58:12 -0500

You've installed a binary package that exists in your Applications folder. It is not easily run from a terminal.

My understanding is that for OSX 10.4 you'll need to start x11 prior to running octave in order for gnuplot to display the figures.

so ...

(1) Start x11 (it is in /Applications/Utilities)
(2) Start Octave (it is in /Applications)
(3) type "plot (1:10)"

Do you get a figure?

If not you *may* need to set the environment variable "display". Although I'd expect this has already be taken care of.

If you desire to run octave directly from the command line of the Terminal, or from an xterm (they are different), I'd suggest you install octave via MacPorts or Fink.

Ben

On Jan 3, 2009, at 4:43 PM, Gerard Awanou wrote:

I am running Mac OS 10.4.11. I tried to run octave and gnuplot from the
X11 terminal but it did not recognize these commands.
However I can run Octave directly.

Thanks

Gerard

On Sat, 3 Jan 2009, Ben Abbott wrote:

Ok, the install looks ok. The binary package you have will first look in the path for gnuplot and then assume it is in the applications folder. (The 'which gnuplot' checks the path). In any event, your install of gnuplot looks
ok.

I should have asked before, what version of OSX are you running?

If your version is 10.4 or less, try starting x11 prior to running octave.

Ben

On Jan 3, 2009, at 5:23 AM, Gerard Awanou wrote:

Thank you for your quick reply Ben

I got Octave from http://octave.sourceforge.net/ I believe. I installed
gnuplot from the Extras folder.
After I typed "getenv('GNUTERM')", I got
ans =

gnuplot appears to be installed. It opens in a terminal with the message
exec '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
followed by information about the version and finally the message
Terminal type set to 'aqua'

However when I type on a terminal which gnuplot I get the message
no gnuplot in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/ texbin

I must say that a few months ago, I unsuccessfully tried to fix an
installation of Octave by playing around with the commands sudo,
Aquaterm and X11 following suggestions on the internet. I now have X11
installed.

Thanks again.

Gerard

On Fri, 2 Jan 2009, Ben Abbott wrote:


On Jan 2, 2009, at 10:09 PM, Gerard Awanou wrote:

Greetings

I am having trouble with Octave on my Macbook. The command plot([1 2 3])
runs but nothing happens.

Thanks for your anticiapted reply

Gerard Awanou

Where/how did you obtain octave?

Did you install gnuplot?

If you are not sure, check to see if "gnuplot" is in you Applications
folder.
Open a Terminal window (Terminal is in Applications/Utilities) and type "which gnuplot". If you get nothing, and you have the octave.dmg open it.
You'll find gnuplot.dmg in the Extra's folder.

If gnuplot is on you system, type "getenv('GNUTERM')" in octave's window
and
let us know what happens.

Ben
_______________________________________________
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]