plot does not work [gnuplot is ok].

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

plot does not work [gnuplot is ok].

Martin Maechler
Hello dear Octave Gurus,

I have installed octave "alright",
i.e., I tried a few things and they worked ...,

but plotting does NOT.
I have installed and tested out  gnuplot alright.

Here is a sample session:

ingrid{local}358% octave
Octave, version 1.0.  Copyright (C) 1992, 1993, 1994 John W. Eaton.
This is free software with ABSOLUTELY NO WARRANTY.
For details, type `warranty'.

octave:1> show
warning: plot: unable to open pipe to `gnuplot'
octave:2> quit
------------------------------------------------------
        Gnuplot is here :

ingrid{local}359% gnuplot

        G N U P L O T
        unix version 3.5
        patchlevel 3.50.1.17, 27 Aug 93
        last modified Fri Aug 27 05:21:33 GMT 1993

        Copyright(C) 1986 - 1993   Colin Kelley, Thomas Williams

        Send comments and requests for help to [hidden email]
        Send bugs, suggestions and mods to [hidden email]

Terminal type set to 'x11'

gnuplot> show
show
             ^
         valid show options:  'action_table', 'all', 'angles', 'arrow',
        'autoscale', 'border', 'boxwidth', 'clip', 'contour', 'data',
        'dgrid3d', 'dummy', 'format', 'function', 'grid', 'hidden', 'key',
        'label', 'logscale', 'mapping',  'offsets', 'output', 'plot',
        'parametric', 'polar', 'rrange', 'samples', 'isosamples', 'view',
        'size', 'terminal', 'tics', 'ticslevel', 'time', 'title', 'trange',
        'urange', 'vrange', 'variables', 'version',
        'xlabel', 'xrange', '{no}xtics', 'xmtics', 'xdtics', '{no}xzeroaxis',
        'ylabel', 'yrange', '{no}ytics', 'ymtics', 'ydtics', '{no}yzeroaxis',
  'zero', '{no}zeroaxis', 'zlabel', 'zrange', '{no}ztics',
  'zmtics', 'zdtics'

gnuplot> quit
quit
ingrid{local}360%

============================================================================
Can anyone help me, please ?
 [including a CC: e-mail to me, I am not (yet) on the mailing list..]

Thank you very much in advance !

Martin Maechler <[hidden email]> <><
Seminar fuer Statistik, SOL F5 \\ ETH (Federal Inst. Technology)
8092 Zurich  SWITZERLAND
phone: x-41-1-632-3408
fax  : x-41-1-252-3410

Reply | Threaded
Open this post in threaded view
|

Re: plot does not work [gnuplot is ok].

Martin Maechler
I wrote a few hours ago:

> > I have installed octave "alright",
> > i.e., I tried a few things and they worked ...,
> >
> > but plotting does NOT.
> > I have installed and tested out  gnuplot alright.
> >
> > Here is a sample session:
> >
> > ingrid{local}358% octave
> > Octave, version 1.0.  Copyright (C) 1992, 1993, 1994 John W. Eaton.
> > This is free software with ABSOLUTELY NO WARRANTY.
> > For details, type `warranty'.
> >
>
> > octave:1> show
> > warning: plot: unable to open pipe to `gnuplot'
> > octave:2> quit
> >

And Dave Rebnord rightly asks

>
> What sort of system are you running octave on?
> There was a problem opening a pipe to gnuplot on NeXT systems, because of bugs  
> in libg++-2.5.3 on NeXT systems.
> If you are running on a NeXT let me know. I have a binary for NeXT systems for
> which plotting works or you can get the binary from ftp.che.utexas.edu, but the  
> binaries are the same since I provided the one at Texas.
>
> If you are not running on a NeXT it may be that your system has a similar bug  
> in libg++-2.5.3 in which case I can send you the patches I applied.

System: Sun SPARC [1,2,10,..]
OS: SunOS 4.1.2 and 4.1.3,

octave compiled with newest GCC and libg++

This is such a standard system that I cannot imagine that I am the only
using it + octave + gnuplot.

Or am I ?

Does it make sense to try Dave's patch(es) ?

Reply | Threaded
Open this post in threaded view
|

shell_cmd -- returns nothing [was: plot does not work [gnuplot is ok]].

Martin Maechler
In reply to this post by Martin Maechler
Hello dear Ocatve Gurus,
yesterday  I wrote about 'plot' not working with the following error
message:

> octave:1> show
> warning: plot: unable to open pipe to `gnuplot'
> ------------------------------------------------------

Now, I found out that the whole interface to the shell seems somehow
broken. The following commands give ``unexpected'' results:

        ls \
        dir /  give no answer
        pwd :   okay

        shell_cmd : NO Answer, e.g.,
------------------------------------------------
octave:2> shell_cmd("finger",1)
ans =
octave:3> shell_cmd("date",1)
ans =

Does this help to diagnose ?
What else could I try ?

The environment: SunOS 4.1.{2|3}, SPARCs 1/2/10
                GCC 2.5.8, libg++ 2.5.x [newest]
        Shell: 'tcsh' --- but the same happens when started from 'sh'.