# HG changeset patch # User Ben Abbott # Date 1238191838 14400 # Node ID e15f4197d9072c545d8baede60f5eb44d8ea5f73 # Parent 56018fcd28b08668958aaf3c0529fab33d1cde1a __go_draw_axes__.m: Properly position the title for 3D plots when using the gnuplot (v4.3+) backend. diff -r 56018fcd28b0 -r e15f4197d907 scripts/ChangeLog --- a/scripts/ChangeLog Fri Mar 27 21:34:23 2009 +0100 +++ b/scripts/ChangeLog Fri Mar 27 18:10:38 2009 -0400 @@ -1,3 +1,8 @@ +2009-03-27 Ben Abbott + + * plot/__go_draw_axes__.m: Properly position the title for 3D plots + when using the gnuplot (v4.3+) backend. + 2009-03-27 Jaroslav Hajek * linear-algebra/expm.m: Fix order of outputs from balance. diff -r 56018fcd28b0 -r e15f4197d907 scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Fri Mar 27 21:34:23 2009 +0100 +++ b/scripts/plot/__go_draw_axes__.m Fri Mar 27 18:10:38 2009 -0400 @@ -100,9 +100,14 @@ else fontspec = sprintf ("font \"%s,%d\"", f, s); endif - fprintf (plot_stream, "set title \"%s\" %s %s;\n", + fprintf (plot_stream, "set title \"%s\" %s %s", undo_string_escapes (tt), fontspec, __do_enhanced_option__ (enhanced, t)); + if (nd == 3) + fprintf (plot_stream, " offset screen 0, screen %.3f;\n", pos(4)/5); + else + fprintf (plot_stream, ";\n"); + endif endif endif