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: John W. Eaton
Subject: Re: gnuplot_x11 driver with octave.app/gnuplot.app on Mac
Date: Sat, 04 Aug 2007 07:08:48 -0400

On  4-Aug-2007, Thomas Treichl wrote:

| also drawnow.m overwrites the term variable to "aqua" - a first workaround 
would 
| be that you manually set "x11" in line 124 of 
| <Octave.app>/Contents/Resources/share/octave/2.9.13/m/plot/drawnow.m
| 
|    term = "x11";
| 
| Don't know if I have the time today to work on this problem but meanwhile you 
| should be able to work with this and X11. I prepare a patch and then send 
this 
| to the list.

The following patch to drawnow.m has already been made in the Octave
CVS.  Does it fix the problem for you?

jwe


scripts/ChangeLog:

2007-07-27  John W. Eaton  <address@hidden>

        * plot/drawnow.m: Only set default value for term if GNUTERM is
        not set in the environment.


Index: scripts/plot/drawnow.m
===================================================================
RCS file: /cvs/octave/scripts/plot/drawnow.m,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -u -w -r1.18 -r1.19
--- scripts/plot/drawnow.m      18 Jul 2007 17:43:51 -0000      1.18
+++ scripts/plot/drawnow.m      27 Jul 2007 05:26:27 -0000      1.19
@@ -109,17 +109,19 @@
 
       ## Guess the terminal type.
       term = getenv ("GNUTERM");
-      if (isempty (term) && ! isempty (getenv ("DISPLAY")))
+      if (isempty (term))
+       if (! isempty (getenv ("DISPLAY")))
         term = "x11";
       elseif (! isunix ())
         term = "windows";
       else
-        term = "aqua";
         ## This should really be checking for os x before setting
         ## the terminal type to aqua, but nobody will notice because
         ## every other unix will be using x11 and windows will be
         ## using windows.  Those diehards still running octave from
         ## a linux console know how to set the GNUTERM variable.
+          term = "aqua";
+       endif
       endif
 
       ## If no 'h' (why not?) then open the terminal as Figure 0.

reply via email to

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