# HG changeset patch # User Ben Abbott # Date 1290386264 18000 # Node ID f0478684bc2fa0257bc960323394085edbfbf78d # Parent 107e7476a5da4955e944145c0b72111cda9dfa90 __go_draw_axes__.m: Fix plot titles so they are visible for gnuplot 4.4.x (31711). diff -r 107e7476a5da -r f0478684bc2f scripts/ChangeLog --- 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 - +2010-11-21 Ben Abbott + + * 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 diff -r 107e7476a5da -r f0478684bc2f scripts/plot/__go_draw_axes__.m --- 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