diff scripts/plot/gnuplot_drawnow.m @ 9468:5af462716bff

Add support for gnuplot's Lua-TikZ terminal.
author Ben Abbott <bpabbott@mac.com>
date Wed, 29 Jul 2009 07:22:05 -0400
parents 684312a5291c
children 7e1e90837fef
line wrap: on
line diff
--- a/scripts/plot/gnuplot_drawnow.m
+++ b/scripts/plot/gnuplot_drawnow.m
@@ -202,7 +202,7 @@
           ## Set terminal size.
           terminals_with_size = {"emf", "gif", "jpeg", "latex", "pbm", ...
                                  "pdf", "png", "postscript", "svg", ...
-                                 "epslatex", "pstex", "pslatex"};
+                                 "epslatex", "pstex", "pslatex", "tikz"};
           if (__gnuplot_has_feature__ ("x11_figure_position"))
             terminals_with_size{end+1} = "x11";
           endif
@@ -212,6 +212,8 @@
           if (any (strncmpi (term, terminals_with_size, 3)))
 	    if (term_units_are_pixels (term))
               size_str = sprintf ("size %d,%d", gnuplot_size);
+	    elseif (strcmp (term, "tikz"))
+              size_str = sprintf ("size %.15gin,%.15gin", gnuplot_size);
 	    else
               size_str = sprintf ("size %.15g,%.15g", gnuplot_size);
 	    endif