changeset 11286:f0478684bc2f

__go_draw_axes__.m: Fix plot titles so they are visible for gnuplot 4.4.x (31711).
author Ben Abbott <bpabbott@mac.com>
date Sun, 21 Nov 2010 19:37:44 -0500
parents 107e7476a5da
children d81b79c1bd5d
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sun Nov 21 13:14:25 2010 -0500
+++ b/scripts/ChangeLog	Sun Nov 21 19:37:44 2010 -0500
@@ -1,5 +1,7 @@
-2010-11-21  Ben Abbott <bpabbot@mac.com>
-
+2010-11-21  Ben Abbott <bpabbott@mac.com>
+
+	* plot/__go_draw_axes__.m: Fix plot titles so they are visible for
+	gnuplot 4.4.x (31711).
 	* general/cell2mat.m: Return empty matrix for empty cell.
 
 2010-11-21  Kai Habel  <kai.habel@gmx.de>
--- a/scripts/plot/__go_draw_axes__.m	Sun Nov 21 13:14:25 2010 -0500
+++ b/scripts/plot/__go_draw_axes__.m	Sun Nov 21 19:37:44 2010 -0500
@@ -147,15 +147,9 @@
       else
         [tt, f, s] = __maybe_munge_text__ (enhanced, t, "string");
         fontspec = create_fontspec (f, s, gnuplot_term);
-        fprintf (plot_stream, "set title \"%s\" %s %s",
+        fprintf (plot_stream, "set title \"%s\" %s %s;\n",
                  undo_string_escapes (tt), fontspec,
                  __do_enhanced_option__ (enhanced, t));
-        if (nd == 3
-            && __gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin"))
-          fprintf (plot_stream, " offset screen 0, screen %.3f;\n", pos(4)/5);
-        else
-          fprintf (plot_stream, ";\n");
-        endif
       endif
     endif