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: Thomas Treichl
Subject: Re: Fwd: can not get octave to plot - posting again
Date: Tue, 29 Sep 2009 20:40:47 +0200
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Nasreddin Hodja schrieb:

Thomas,

Below are the error messages I get when I type in the commands you suggested.

I had not seen your response before, I wish I had... I have been trying to plot my graphs outside of octave in the past month but it started getting tedious. I hope to figure this plotting problem out soon.

Thank you for offering help,
--tolga


octave-3.2.2:96>  ostream = __gnuplot_open_stream__ (2, gcf ())
ostream =

   11   12

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
octave-3.2.2:97>
octave-3.2.2:97>  gpin_name = tmpnam ()
gpin_name = /local/tmp/oct-0C8olE
octave-3.2.2:98>
octave-3.2.2:98>  [err, msg] = mkfifo (gpin_name, 6*8*8)
err = -1
msg = No such file or directory



---------------------
Hi,

I put some Octave commands here - can you please copy and paste them into a running Octave session and then please send back all the output of these commands:

 ostream = __gnuplot_open_stream__ (2, gcf ())

 gpin_name = tmpnam ()

 [err, msg] = mkfifo (gpin_name, 6*8*8)

Best regards,

 Thomas



On Sun, Aug 23, 2009 at 8:46 PM, Nasreddin Hodja <address@hidden <mailto:address@hidden>> wrote:


    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
    <mailto: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
        <mailto:address@hidden>>
        < Date: Sat, Aug 22, 2009 at 10:16 PM
        < Subject: can not get octave to plot
        < To: address@hidden <mailto: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.

Sorry, I must have overlooked your answer. Ok, let's see what we can do now. The problem you have has nothing to do with where the binary of gnuplot is located. Your problem is that you cannot create a fifo special file on your Mac.

I think the problem is somewhere with your tmpnam() function because it returns a result to /local/tmp. On my system a call to tmpnam() within Octave gives the result

  octave-3.2.0:1> tmpnam ()
  ans = /var/tmp/oct-KmvZyU

First question now is, is there a path on your system which is called /local/tmp? Open a Terminal.app and check this

  ls -l /local/tmp

I expect this path does not exist on your Mac or it has been created manually?! The next question is, is there a global /tmp directory on your Mac, check

  ls -l /tmp

and also please type this line in your Terminal.app

  echo $TMPDIR

I also expect that your Octave mkfifo() command works correctly, can you please check in Octave.app

  [verr, vmsg] = mkfifo ("test.txt", 666)
  delete ("test.txt")

Meanwhile best regards

  Thomas


reply via email to

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