changeset 22491:112292a9b837

__gnuplot_drawnow__.m: Add "qt" to list of terminals_with_size option. * __gnuplot_drawnow__.m: Add "qt" to list of terminals_with_size option.
author Rik <rik@octave.org>
date Wed, 14 Sep 2016 18:28:33 -0700
parents 49103c6e0782
children 8c920950b7cc
files scripts/plot/util/__gnuplot_drawnow__.m
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/__gnuplot_drawnow__.m	Wed Sep 14 16:45:45 2016 -0700
+++ b/scripts/plot/util/__gnuplot_drawnow__.m	Wed Sep 14 18:28:33 2016 -0700
@@ -189,17 +189,17 @@
           gnuplot_size = gnuplot_size / 72;
         endif
         if (all (gnuplot_size > 0))
-          terminals_with_size = {"canvas", "cairolatex", "eepic", "emf", ...
+          terminals_with_size = {"cairolatex", "canvas", "eepic", "emf", ...
                                  "epscairo", "epslatex", "fig", "gif", ...
                                  "jpeg", "latex", "pbm", "pdf", "pdfcairo", ...
-                                 "postscript", "png", "pngcairo", "pstex", ...
-                                 "pslatex", "svg", "tikz", "windows", ...
-                                 "wxt", "x11"};
+                                 "png", "pngcairo", "postscript", ...
+                                 "pslatex","pstex", "qt", "svg", "tikz", ...
+                                 "windows", "wxt", "x11"};
           switch (term)
             case terminals_with_size
               size_str = sprintf ("size %.12g,%.12g", gnuplot_size);
-            case "tikz"
-              size_str = sprintf ("size %gin,%gin", gnuplot_size);
+            case {"aqua", "fig", "corel"}
+              size_str = sprintf ("size %g %g", gnuplot_size);
             case "dumb"
               new_stream = 1;
               if (! isempty (getenv ("COLUMNS"))
@@ -213,10 +213,10 @@
                 ## Use the gnuplot default.
                 size_str = "";
               endif
-            case {"aqua", "fig", "corel"}
-              size_str = sprintf ("size %g %g", gnuplot_size);
             case "dxf"
-              size_str = "";
+              size_str = "";  # dxf supposedly supports "set size" in 5.0
+            case "tikz"
+              size_str = sprintf ("size %gin,%gin", gnuplot_size);
             otherwise
               size_str = "";
           endswitch