Mercurial > hg > octave-lojdl
changeset 9082:2d85197dbae4
__go_draw_axes__.m: Fix title placement for gnuplot 4.2.x.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 02 Apr 2009 20:50:50 -0400 |
parents | c79cf77061b7 |
children | 3c7a36f80972 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-04-02 Ben Abbott <bpabbott@mac.com> + + * plot/__go_draw_axes__.m: Fix title placement for gnuplot 4.2.x. + 2009-04-02 Jaroslav Hajek <highegg@gmail.com> * optimization/fsolve.m: Fix test.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -100,7 +100,7 @@ fprintf (plot_stream, "set title \"%s\" %s %s", undo_string_escapes (tt), fontspec, __do_enhanced_option__ (enhanced, t)); - if (nd == 3) + 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");