Mercurial > jwe > octave
changeset 20968:123da81b9176
Add support for the standalone option for the gnuplot tikz terminal.
(Part of Bug #44187).
* print.m: Include the tikzstandalone devices to the doc-string.
* __gnuplot_print__.m: Add support for "tikzstandalone", and switch from the
terminal name "lua tikz" to the gnuplot alias "tikz".
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Wed, 23 Dec 2015 17:44:05 -0500 |
parents | 3a9b33590516 |
children | 984678f19352 |
files | scripts/plot/util/print.m scripts/plot/util/private/__gnuplot_print__.m |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/print.m Wed Dec 23 17:41:16 2015 -0500 +++ b/scripts/plot/util/print.m Wed Dec 23 17:44:05 2015 -0500 @@ -140,8 +140,11 @@ ## @samp{epslatexstandalone} above. ## ## @item tikz +## @itemx tikzstandalone ## Generate a @LaTeX{} file using PGF/TikZ@. For the FLTK toolkit -## the result is PGF. +## the result is PGF. The @samp{tikzstandalone} device produces a @LaTeX{} +## document which includes the TikZ file (@samp{tikzstandalone} is only +## available with the gnuplot graohpics toolkit). ## ## @item ill ## @itemx aifm
--- a/scripts/plot/util/private/__gnuplot_print__.m Wed Dec 23 17:41:16 2015 -0500 +++ b/scripts/plot/util/private/__gnuplot_print__.m Wed Dec 23 17:44:05 2015 -0500 @@ -99,9 +99,12 @@ endif local_drawnow ([term " " gp_opts], [name "." suffix], opts); - case "tikz" + case {"tikz", "tikzstandalone"} + if (strfind (opts.devopt, "standalone")) + gp_opts = sprintf ("standalone %s", gp_opts); + endif if (__gnuplot_has_terminal__ ("tikz")) - local_drawnow (["lua tikz " gp_opts], opts.name, opts); + local_drawnow (["tikz " gp_opts], opts.name, opts); else error (sprintf ("print:no%soutput", opts.devopt), "print.m: '%s' output is not available for gnuplot-%s",