changeset 11312:c18526be2340

__go_draw_axes__.m: If not set, the unset the gnuplot {tblr}margins.
author Ben Abbott <bpabbott@mac.com>
date Fri, 03 Dec 2010 18:21:25 -0500
parents 3bddc4ea8141
children 988d2bd6bacd
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Dec 03 11:46:09 2010 -0800
+++ b/scripts/ChangeLog	Fri Dec 03 18:21:25 2010 -0500
@@ -1,3 +1,9 @@
+2010-12-03  Ben Abbott  <bpabbott@mac.com>
+
+	* 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 <logari81@gmail.com>
 
 	* plot/pbaspect.m, plot/daspect.m: Fix handling of input array of
--- a/scripts/plot/__go_draw_axes__.m	Fri Dec 03 11:46:09 2010 -0800
+++ b/scripts/plot/__go_draw_axes__.m	Fri Dec 03 18:21:25 2010 -0500
@@ -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"))