help-octave
[Top][All Lists]
Advanced

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

Re: Fwd: can not get octave to plot - posting again


From: Nasreddin Hodja
Subject: Re: Fwd: can not get octave to plot - posting again
Date: Sun, 23 Aug 2009 20:46:46 -0700


Thank you for your responses. Ben's suggestion actually makes an empty plot box pop - I did not have that before... But the plot window is blank and the error I get is still the same.

octave-3.2.2:1> setenv ("GNUTERM", "x11")
octave-3.2.2:2> plot(1:10)

error: __gnuplot_get_var__: Can not make fifo (No such file or directory)
error: called from:
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/__gnuplot_get_var__.m at line 69, column 7
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/__go_draw_axes__.m at line 39, column 18
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/__go_draw_figure__.m at line 93, column 3
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 88, column 5



I tried Leo's suggestion as well...Created a .octaverc and pasted the line: gnuplot_binary("/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot")
in it. The behavior is the same. So I assume location of gnuplot is known by octave, but not really sure... When I do not type setenv ("GNUTERM", "x11") I do get a pop up blank plot window but when I do, again the error is:

octave-3.2.2:1>        setenv ("GNUTERM", "x11")
octave-3.2.2:2> plot(1:10)
error: __gnuplot_get_var__: Can not make fifo (No such file or directory)
error: called from:
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/__gnuplot_get_var__.m at line 69, column 7
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/__go_draw_axes__.m at line 39, column 18
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/__go_draw_figure__.m at line 93, column 3
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 88, column 5

just to check at the end:
octave-3.2.2:3> gnuplot_binary
ans = /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot


Any other thoughts?

Thanks,
--tolga






On Sun, Aug 23, 2009 at 7:13 PM, Leo Butler <address@hidden> wrote:


On Sun, 23 Aug 2009, Nasreddin Hodja wrote:

< I hope this one goes through...
<
< Thanks in advance,
< --tolga
<
<
< ---------- Forwarded message ----------
< From: Nasreddin Hodja <address@hidden>
< Date: Sat, Aug 22, 2009 at 10:16 PM
< Subject: can not get octave to plot
< To: address@hidden
<
<
< Hello all,
<
< My OS: Mac OSX 10.5.6
< My Octave version: 3.2.2
< My GnuPlot version: 4.2.5
<
< I installed both GnuPlot and Octave.  Also installed control toolbox for
< octave, which works fine...
<
< But *when I try to use the ?plot? function in Octave I get the following
< error pasted below:**
< *
< FYI: I run X11 beforehand and I already set the DISPLAY to 0.0 in my .zshrc.
< The gnuterm is set to aqua (no idea what that is but it should be ok, as I
< followed many threads on this - though i don't think it changes anything
< when I set it to x11)
<
< ERROR is:
<
< octave-3.2.2:1> plot(1:10)
< error: __gnuplot_get_var__: Can not make fifo (No such file or directory)

I think this error indicates octave cannot find gnuplot. You can tell
octave the location of gnuplot by putting

gnuplot_binary("path to gnuplot");

in your .octaverc file in your home directory.

Leo

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



reply via email to

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