[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using gnuplot (wgnuplot) with octave under windows 95
From: |
Tom Weichmann |
Subject: |
Re: using gnuplot (wgnuplot) with octave under windows 95 |
Date: |
Tue, 4 Sep 2001 17:20:16 -0400 |
Alan,
gnuplot_binary = "pipe-gnuplot c:/gnu/usr/local/bin/wgnuplot"
This line tells Octave where the gnuplot executable is. For what ever
reason, it looks like it is probably wrong. Use the same syntax, but point
it to the correct place, probably like this:
gnuplot_binary = "pipe-gnuplot c:/gnu/octave/wgnuplot/wgnuplot-3.7.exe"
or something like that. Its been awhile since I make this package
putenv('TMPDIR','c:/PalmDev/cygwin/tmp')
This line is a workaround, there are other, but this is the one that I chose
to employ. Octave writes a temp file to /tmp with its plot data for gnuplot,
and then calls gnuplot and tells it to read this file from /tmp. the thing
is that because these are both linux programs running on windows, the have to
be told where /tmp is. By default Octave thinks that /tmp is located at
$CYGWIN_ROOT/tmp
in this case that would be C:\gnu\octave\tmp
which is fine, but wgnuplot.exe thinks that /tmp refers to your windows
default temp directory, in windows 9x:
C:\windows\temp
therefore wgnuplot.exe cannot find the data that octave told it to plot. If
you set TMPDIR=$CYGWIN_ROOT/tmp, or in this case C:\gnu\octave\tmp then both
Octave and Wgnuplot.exe will both know the correct location of the temp
directory.
One last note: check your /etc/profile. The first line should look like this:
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
add your path to wgnuplot.exe to this
PATH="/usr/local/bin:/usr/bin:/bin:/wgnuplot:$PATH"
or whatever it is.
Hope this helps,
Tom Weichmann
On Monday, September 03, 2001 01:03 pm, Alan Rockwood wrote:
> I am having trouble setting up wgnuplot to work with octave under windows
> (cygwin). I think my problem has something to do with octaverc.
>
> Here's my batch file for starting octave. It's named octave.bat:
>
> rem @echo off
> rem :: ..generated by GNU Octave setup.bat, then modified by ALR
> if not exist \tmp\nul mkdir \tmp
> bash --login StartOctave
> rd \tmp
>
>
> OK now, that's the end of my batch file. StartOctave looks like this:
>
> #!/bin/sh
> rxvt -fn "Courier New-14" -tn linux -title "GNU Octave 2.1.31" -n "GNU
> Octave" +sr -sl 1000 -e octave
>
>
> OK that's the end of StartOctave. So far, so good. Everything works fine.
> However, I have tried to hook octave to wgnuplot using pipe-gnuplot.exe and
> have not succeeded. I think it has something to do with the file octavert.
> This is how I set up the file octavert:
>
> ## System-wide startup file for Octave.
> ##
> ## This file should contain any commands that should be executed each
> ## time Octave starts for every user at this site.
> gnuplot_binary = "pipe-gnuplot c:/gnu/usr/local/bin/wgnuplot"
> putenv('TMPDIR','c:/PalmDev/cygwin/tmp')
>
> The path pointing to wgnuplot is correct. I am not sure what the purpose of
> the putenv line is, but it does point to an existing directory.
>
> I think the fundamental question is this: How does octave find octavert?
>
> A related question is this: Should I put the lines that I now have in
> octavert into the file StartOctave, or possibly into the file octave.bat?
>
> Thanks.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------