octave-maintainers
[Top][All Lists]
Advanced

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

changeset 9395 (3.2.x branch) should be applied not only x11 term but on


From: Tatsuro MATSUOKA
Subject: changeset 9395 (3.2.x branch) should be applied not only x11 term but on windows, wxt, ( and aqua) term
Date: Mon, 7 Sep 2009 17:04:47 +0900 (JST)

Hello

The changeset 9395 (3.2.x branch) makes mouse zoom in 2d in windows and wxt 
terminals impossible.

It should be applied to all view terminals (x11, winodws, wxt and perhaps aqua).
At present I do not concern "qt" term.

Hello Ben Abbott  
Please confirm  the changeset below is also applicable to the "aqua" term 

****
Hello Jaroslav and John

If Ben will give affirmative reply, please the attach the changeset to 3.2.x 
and development branch.

Regards

Tatsuro

**************************
# Date 1252309506 -32400
# Node ID a9ad624197bab8f8b105fff36e8afae379b29474
# Parent  796c26e4af4709c9b35d454ea634573f13cabfaf
 changeset 9395 should be applied not only x11 term
 --
 user: Tatsuro Matsuoka
 branch 'default'
changed scripts/plot/gnuplot_drawnow.m

diff -r 796c26e4af47 -r a9ad624197ba scripts/plot/gnuplot_drawnow.m
--- a/scripts/plot/gnuplot_drawnow.m    Mon Sep 07 08:01:41 2009 +0200
+++ b/scripts/plot/gnuplot_drawnow.m    Mon Sep 07 16:45:06 2009 +0900
@@ -286,10 +286,10 @@
       ## the canvas size for terminals cdr/corel.
       term_str = sprintf ("%s %s", term_str, size_str);
     endif
-    ## Work around the gnuplot feature of growing the x11 window when
-    ## the mouse and multiplot are set.
+    ## Work around the gnuplot feature of growing the window (x11, windows, 
aqua, wxt)
+    ## when the mouse and multiplot are set.
     fputs (plot_stream, "unset multiplot;\n");
-    if (! strcmp (term, "x11")
+    if (! index("x11 windows aqua wxt", term)
         || numel (findall (h, "type", "axes")) > 1
         || numel (findall (h, "type", "image")) > 0)
       fprintf (plot_stream, "%s\n", term_str);
@@ -299,7 +299,7 @@
         endif
       endif
       fputs (plot_stream, "set multiplot;\n");
-    elseif (strcmp (term, "x11"))
+    elseif (index("x11 windows aqua wxt", term))
       fprintf (plot_stream, "%s\n", term_str);
       if (nargin == 5)
         if (! isempty (file))


--------------------------------------
Thanks 10 years!  Yahoo! Shopping and Yahoo! Auctions
http://pr.mail.yahoo.co.jp/ec10years/


reply via email to

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