help-octave
[Top][All Lists]
Advanced

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

Re: using gnuplot 4.2


From: LUK ShunTim
Subject: Re: using gnuplot 4.2
Date: Fri, 27 Jul 2007 17:29:49 +0800
User-agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070622)

Ares wrote:
> 2007/7/27, LUK ShunTim <address@hidden>:
>> Ares wrote:
>>> Hi all,
>>>
>>> I am a new (happy) GNU/Linux user. I have kubuntu 7.04 installed with 
>>> octave 2.9
>>>
>>> by default kubuntu package manager installs gnuplot version 4.0. now I
>>> found on octave help that octave can use gnuplot 4.2 to show images
>>> and plot data on top of such images (that is what I need) using
>>> gnuplot.
>>>
>>> My problem is: how can I tell octave to use gnuplot 4.2 instead of 4.0?
>>>
>>> I tried removing gnuplot 4.0 but (of course) octave does not find
>>> gnuplot anymore.
>>>
>>> thanks in advance for your help. Regards
>>>
>> Did you install gnuplot 4.2 via a deb package? If it's the case, the
>> easiest way is probably the debian alternatives mechanism. Try "man
>> update-alternatives" to see how to do it or install galternatives for a
>> GUI to do the same.
>>
>> For standalone install, you can try setting the binary search path so
>> that octave finds gnuplot 4.2 first. You may have to copy/rename the
>> binary to gnuplot if it's called gnuplot-4.2 or something.
>>
>> For bash,
>>
>> export PATH=/path/to/your/gnuplot/binary/dir:$PATH
>>
>> Regards,
>> ST
>> --
>>
>>
> 
> as I said I am quite new to Linux, so I do not really understand all
> you are saying...
> 
> anyway, I searched for gnuplot bin files and there are two of them,
> /usr/bin/gnuplot and /usr/local/bin/gnuplot, the first corresponds to
> gnuplot 4.0 and the second to 4.2. If I simply type gnuplot, it opens
> gnuplot 4.2, so this should already be prior to 4.0 (and octave should
> use this instead?)

In this case, gnuplot 4.2 should be found first. I don't think octave
hard-coded the path. Perhaps more knowledgeable users can confirm.

Just to be sure, what does "echo $PATH" show? Is /usr/local/bin in front
of /usr/bin?

> 
> I also tried galternatives (don't have time to do it by command line!)
> and gnuplot is not there at all!

I guess your gnuplot 4.2 is not installed via dpkg or apt.

> 
> I think that the problem is "how to tell octave to use 4.2 version of
> gnuplot"? and also, how to tell which version of gnuplot octave is
> using? and is it true that octave is supposed to call gnuplot 4.2 to
> show images (and plot on top of them)?
> 
> If I use imshow, octave keeps on using image magick...

Because somehow octave failed to find gnuplot 4.2 and hence it tries
other viewers. See "help imshow".

> 
> Regards,

Regards,
ST
--




reply via email to

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