Mercurial > hg > octave-lojdl
changeset 8224:62d90e049d4f
Always use multiplot with gnuplot to ensure correct postscript bounding box
author | David Bateman <dbateman@free.fr> |
---|---|
date | Thu, 16 Oct 2008 10:31:37 +0100 |
parents | 0c91b9a17dcf |
children | 53202d60086f |
files | scripts/ChangeLog scripts/plot/__go_draw_figure__.m |
diffstat | 2 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2008-10-16 David Bateman <dbateman@free.fr> + + * plot/__go_draw_figure__.m: Always use multiplot and create an + enclosing axis to ensure bounding box of postscript is correct. + 2008-10-16 Ben Abbott <bpabbott@mac.com> * plot/__go_draw_axes__.m (do_tics_1): New arg, interpreter.
--- a/scripts/plot/__go_draw_figure__.m +++ b/scripts/plot/__go_draw_figure__.m @@ -42,12 +42,9 @@ fputs (plot_stream, "\nreset;\n"); fputs (plot_stream, "set autoscale fix;\n"); - - multiplot_mode = axes_count > 1; - - if (multiplot_mode) - fputs (plot_stream, "set multiplot;\n"); - endif + fputs (plot_stream, "set multiplot;\n"); + fputs (plot_stream, "set origin 0, 0\n"); + fputs (plot_stream, "set size 1, 1\n"); for i = 1:nkids obj = get (kids(i)); @@ -60,9 +57,7 @@ endswitch endfor - if (multiplot_mode) - fputs (plot_stream, "unset multiplot;\n"); - endif + fputs (plot_stream, "unset multiplot;\n"); else fputs (plot_stream, "\nreset; clear;\n"); fflush (plot_stream);