|
From: | Søren Hauberg |
Subject: | Re: using gnuplot 4.2 |
Date: | Fri, 27 Jul 2007 12:27:01 +0200 |
User-agent: | Thunderbird 1.5.0.12 (X11/20070604) |
Hi,You need to figure out where gnuplot 4.2 is installed. Then in octave you can write
gnuplot_binary("/usr/local/bin/gnuplot")if you have installed gnuplot 4.2 in /usr/local/bin. If you need to do this every time you start octave, you can put the code in the file ~/.octaverc. Everything in this file will be executed when you start octave.
søren Ares skrev:
2007/7/27, LUK ShunTim <address@hidden>: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. RegardsDid 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?yes it is.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.no, I downloaded the package and installed it "by hand"...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".unfortunately help imshow doesn't tell me anything about the viewer used by imshow...Regards,Regards, ST --
[Prev in Thread] | Current Thread | [Next in Thread] |