# HG changeset patch # User David Bateman # Date 1224149497 -3600 # Node ID 62d90e049d4fd3a6c44f9df3b7a0bc6c7281a6ed # Parent 0c91b9a17dcfd3c4fb3810e6f47850ab24d8cfba Always use multiplot with gnuplot to ensure correct postscript bounding box diff -r 0c91b9a17dcf -r 62d90e049d4f scripts/ChangeLog --- a/scripts/ChangeLog Thu Oct 16 09:20:58 2008 +0100 +++ b/scripts/ChangeLog Thu Oct 16 10:31:37 2008 +0100 @@ -1,3 +1,8 @@ +2008-10-16 David Bateman + + * 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 * plot/__go_draw_axes__.m (do_tics_1): New arg, interpreter. diff -r 0c91b9a17dcf -r 62d90e049d4f scripts/plot/__go_draw_figure__.m --- a/scripts/plot/__go_draw_figure__.m Thu Oct 16 09:20:58 2008 +0100 +++ b/scripts/plot/__go_draw_figure__.m Thu Oct 16 10:31:37 2008 +0100 @@ -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);