Help with plot on Macbook
Fumihiro Chiba
chibaf at mac.com
Sat Jan 3 16:41:15 CST 2009
Hi, Awanou
Is there .bash_profile at your home directory?
".bash_profile" is a file name of initialization file for bash.
An example of ".bash_profile" is
-------------->8---------------
if [ -f ~/.bashrc ];then
. ~/.bashrc
fi
PATH=$PATH:/usr/local/bin
BASH_ENV=~/.bashrc
export BASH_ENV PATH
export GNUTERM=x11
alias octave="/Applications/Octave.app/Contents/Resources/bin/octave"
alias gnuplot="/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot"
-------->8-----------
I use octave on Terminal.app with this ".bash_profile".
If you want to use Octave on X11, please see
<http://forums.macosxhints.com/archive/index.php/t-9282.html>
-----------------------
Fumihiro CHIBA
On 2009/01/04, at 6:43, 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
>>> Help-octave at octave.org
>>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
More information about the Help-octave
mailing list