changeset 20958:249a4659dfa5

Place gnuplot ticklabel exponents for LaTeX terminals in mathmode (bug #46517). * __gnuplot_draw_axes__.m: For LaTeX related terminals (i.e. cairolatex, epslatex, latex, pslatex, pstex, pstricks, texdraw, & tikz) place tick labels with exponents in mathmode, $10^{%T}$.
author Ederag <edera@gmx.fr>
date Fri, 18 Dec 2015 20:57:08 -0500
parents 9db35d2042be
children 3894a672799e
files scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Sun Dec 20 15:31:53 2015 -0800
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Dec 18 20:57:08 2015 -0500
@@ -2167,7 +2167,8 @@
   endif
   if (strcmp (scale, "log"))
     num_mtics = 10;
-    if (any (strcmp (gnuplot_term, {"tikz", "pstex", "pslatex", "epslatex"})))
+    if (any (strcmp (gnuplot_term, {"cairolatex", "epslatex", "latex", ...
+        "pslatex", "pstex", "pstricks", "texdraw", "tikz"})))
       fmt = "$10^{%T}$";
     else
       fmt = "10^{%T}";