# HG changeset patch # User Ben Abbott # Date 1235925585 18000 # Node ID 4414e555505d703fbf9428f7cff8654a3839b25b # Parent 937b58380b6a912d628d42b47261fb9d56cd16ef __go_draw_axes__.m: Do not render axis labels twice when their handles are visible. diff -r 937b58380b6a -r 4414e555505d scripts/ChangeLog --- a/scripts/ChangeLog Sun Mar 01 09:49:37 2009 -0500 +++ b/scripts/ChangeLog Sun Mar 01 11:39:45 2009 -0500 @@ -1,3 +1,9 @@ +2009-03-01 Ben Abbott + + * plot/__go_draw_axes__.m: Do not render axis labels twice when + their handles are visible, but do render objects with hidden + handles. + 2009-03-01 Ben Abbott * general/num2str.m: Trivial bug fix. Recent switch from split() diff -r 937b58380b6a -r 4414e555505d scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Sun Mar 01 09:49:37 2009 -0500 +++ b/scripts/plot/__go_draw_axes__.m Sun Mar 01 11:39:45 2009 -0500 @@ -27,7 +27,13 @@ if (nargin >= 4 && nargin <= 5) - axis_obj = __get__ (h); + showhiddenhandles = get (0, "showhiddenhandles"); + unwind_protect + set (0, "showhiddenhandles", "on"); + axis_obj = __get__ (h); + unwind_protect_cleanup + set (0, "showhiddenhandles", showhiddenhandles); + end_unwind_protect parent_figure_obj = get (axis_obj.parent); @@ -288,6 +294,8 @@ fputs (plot_stream, "set clip two;\n"); kids = axis_obj.children; + kids = setdiff (kids, [axis_obj.xlabel, axis_obj.ylabel, ... + axis_obj.zlabel, axis_obj.title]); if (nd == 3) fputs (plot_stream, "set parametric;\n");