help-octave
[Top][All Lists]
Advanced

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

Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac


From: Henry F. Mollet
Subject: Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac
Date: Fri, 10 Aug 2007 19:24:42 -0700
User-agent: Microsoft-Entourage/11.1.0.040913

> Henry,
> 
> I'm sorry I don't have any solution. It is necessary to decide which graphical
> monitor-backend of Gnuplot you want to use before using Octave. The problem
> that 
> I do have is that Gnuplot does not start 'X11.app' automatically but it does
> for 
> 'AquaTerm.framework', eg. if 'X11.app' isn't already opened then I get this
> error:
> 
>    -STARTUP OF GNUPLOT-
>    Terminal type set to 'aqua'
>    gnuplot> set term x11
>    Terminal type set to 'x11'
>    Options are '0'
>    gnuplot> plot sin(x)/x
>    gnuplot: unable to open display ':0.0'
>    gnuplot: X11 aborted.
> 
> if 'X11.app' hasn't been started before 'Gnuplot.app' is started then it
> doesn't 
> start at all (that's what I can see). So what should be done is to startup
> 'X11.app' before starting 'Gnuplot.app' even if people just want to use
> 'AquaTerm.framework' so that the user can decide individually at runtime -
> this 
> implementation doesn't really make sense to me.
> 
> Which distribution 'octave-2.1.71/gnuplot-4.0' are you running? Does it open
> 'X11.app' automatically if needed?
> 
>    Thomas

Thomas,

There would be no problem if I cannot toggle between X11 and AquaTerm as I
can always run two different terminal windows to do it.

'octave-2.1.71/gnuplot-4.0' was installed from source. Was about 2 dozen
steps if I include all the dependencies that were needed.

'octave-2.1.71/gnuplot-4.0' does *not* open the X11 application
automatically but that's not a problem because I can open it.

My problem still is case #3 below, namely Octave-2.9.13/Gnuplot-4.2. It does
trigger X11 to open but it uses AquaTerm instead of X11 to do the graph.

Below are the 4 cases, first the summaries, then the copy/paste from the Max
Terminal window.
Henry

1. Gnuplot 4.2 will open X11 when starting out in a Mac Terminal window.  I
can get a graph in the X'Gnuplot' window.

2. Gnuplot 4.0 will NOT open X11, I have to open it. Then I can get a graph
in the X'Gnuplot' window.

3. Octave-2.9.13/Gnuplot-4.2 will open the X11 application (including an
xterm window that I don't need) *but* the graph will appear in AquaTerm. I
just cannot get the graph in an X'Gnuplot' window.
*This is the problem that I cannot solve*.

4. Octave-2.1.71/Gnuplot-4.0 does not open an X11 window  and I do have to
open the X11 application if I want a graph. The graph will appear in the
X'Gnuplot' window.

*******************************************
1. Gnuplot 4.2
Last login: Fri Aug 10 15:12:39 on ttyp2
Welcome to Darwin!

 [~] -bash-2.05b 500$ export GNUTERM=x11
 [~] -bash-2.05b 501$ exec
'/Applications/GnuPlot.app/Contents/Resources/bin/gnuplot'

        G N U P L O T
        Version 4.2 patchlevel 0
        last modified March 2007
        System: Darwin 8.10.0

Terminal type set to 'x11'
gnuplot> 
## This will have opened the X11 application with an xterm window with the
following prompt:
henry-f-mollets-emac:~ hfm$
I could use this xterm window but don't need it to do a Gnuplot graph
because gnuplot is already open in the Terminal window. Importantly, the X11
application has been opened.

gnuplot> plot sin(x)
Will now give a graph in an X'Gnuplot' window.
**********************************************
2. Gnuplot 4.0
Last login: Fri Aug 10 15:21:04 on ttyp1
Welcome to Darwin!

 [~] -bash-2.05b 500$ export GNUTERM=x11

 [~] -bash-2.05b 501$ gnuplot

        G N U P L O T
        Version 4.0 patchlevel 0
        last modified Thu Apr 15 14:44:22 CEST 2004
        System: Darwin 8.10.0

 Terminal type set to 'x11'
gnuplot> plot sin(x)

gnuplot: unable to open display ':0.0'
gnuplot: X11 aborted.

##If I now open the X11 application the graph will appear in an X"Gnuplot"
window.
*****************************************
3. Octave-2.9.13/Gnuplot-4.2
Last login: Fri Aug 10 15:55:52 on ttyp2
Welcome to Darwin!

 [~] -bash-2.05b 500$ export GNUTERM=x11

 [~] -bash-2.05b 501$ exec
'/Applications/Octave.app/Contents/Resources/bin/octave'
GNU Octave, version 2.9.13

octave-2.9.13:1> 
##X11 has not been opened yet
octave-2.9.13:1> plot (1:20)
##This will open the X11 Application (with an xterm window that I don't
need) *but* the graph will appear in AquaTerm.
octave-2.9.13:2> 

******************************************
4. Octave-2.1.71/Gnuplot-4.0
Last login: Fri Aug 10 15:48:32 on ttyp1
Welcome to Darwin!

 [~] -bash-2.05b 500$ export GNUTERM=x11

 [~] -bash-2.05b 501$ octave
GNU Octave, version 2.1.71 (powerpc-apple-darwin8.1.0).

octave:1> plot (1:10)
octave:2> 
gnuplot: unable to open display ':0.0'
gnuplot: X11 aborted.
# X11 Application has to be opened
octave:2> plot (1:10)
# graph appears in X'Gnuplot' window.
octave:3> 
*******************************************




reply via email to

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