# HG changeset patch # User Rik # Date 1473902913 25200 # Node ID 112292a9b837994c72a9e9f590868bec5731e144 # Parent 49103c6e0782e640c56090faf953f45625260ccc __gnuplot_drawnow__.m: Add "qt" to list of terminals_with_size option. * __gnuplot_drawnow__.m: Add "qt" to list of terminals_with_size option. diff -r 49103c6e0782 -r 112292a9b837 scripts/plot/util/__gnuplot_drawnow__.m --- 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