diff scripts/plot/__gnuplot_drawnow__.m @ 14222:190952239c2c

Use '!' for not operation in preference to '~'. * profexplore.m, inpolygon.m, __gnuplot_drawnow__.m, spline.m: Use '!' for not operation in preference to '~'.
author Rik <octave@nomad.inbox5.com>
date Wed, 18 Jan 2012 21:17:14 -0800
parents df695e37d404
children f0d903879eaa
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_drawnow__.m	Wed Jan 18 21:17:14 2012 -0800
+++ b/scripts/plot/__gnuplot_drawnow__.m	Wed Jan 18 21:17:14 2012 -0800
@@ -147,7 +147,7 @@
     if (! isempty (h) && isfigure (h))
 
       ## Generate gnuplot title string for plot windows.
-      if (output_to_screen (term) && ~strcmp (term, "dumb"))
+      if (output_to_screen (term) && ! strcmp (term, "dumb"))
         fig.numbertitle = get (h, "numbertitle");
         fig.name = strrep (get (h, "name"), "\"", "\\\"");
         if (strcmpi (get (h, "numbertitle"), "on"))
@@ -210,7 +210,7 @@
             size_str = sprintf ("size %gin,%gin", gnuplot_size);
           case "dumb"
             new_stream = 1;
-            if (~isempty (getenv ("COLUMNS")) && ~isempty (getenv ("LINES")))
+            if (! isempty (getenv ("COLUMNS")) && ! isempty (getenv ("LINES")))
               ## Let dumb use full text screen size (minus prompt lines).
               n = sprintf ("%i", -2 - length (find (sprintf ("%s", PS1) == "\n")));
               ## n = the number of times \n appears in PS1