# HG changeset patch # User Ben Abbott # Date 1291418485 18000 # Node ID c18526be2340de112847101ada46f57c72d86122 # Parent 3bddc4ea8141ebfd3aa9671e7079a52c5600a2e7 __go_draw_axes__.m: If not set, the unset the gnuplot {tblr}margins. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2010-12-03 Ben Abbott + + * plot/__go_draw_axes__.m: If not set, then unset the gnuplot + {tblr}margins. Needed when using subplots with differing + activepositionproperty. + 2010-12-03 Konstantinos Poulios * plot/pbaspect.m, plot/daspect.m: Fix handling of input array of diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -117,6 +117,10 @@ sz_str = sprintf ("%s %.15g, %.15g;\n", sz_str, pos(3), pos(4)); endif else ## activepositionproperty == outerposition + fprintf (plot_stream, "unset tmargin;\n") + fprintf (plot_stream, "unset bmargin;\n") + fprintf (plot_stream, "unset lmargin;\n") + fprintf (plot_stream, "unset rmargin;\n") fprintf (plot_stream, "set origin %g, %g;\n", pos(1:2)) sz_str = ""; if (strcmpi (axis_obj.dataaspectratiomode, "manual"))