# HG changeset patch # User Rik # Date 1515718033 28800 # Node ID c12b5cec5c6c57c84206af7a4f37d255ed4ebd37 # Parent 6ece7c7e4912211a9fe1846edd29fbd9520041fd contour3.m: Pull axes configuration commands inside unwind_protect block. * contour3.m: Pull axes configuration commands inside unwind_protect block as all other draw routines do. diff -r 6ece7c7e4912 -r c12b5cec5c6c scripts/plot/draw/contour3.m --- a/scripts/plot/draw/contour3.m Wed Jan 10 17:50:13 2018 -0500 +++ b/scripts/plot/draw/contour3.m Thu Jan 11 16:47:13 2018 -0800 @@ -74,17 +74,18 @@ hax = newplot (hax); [ctmp, htmp] = __contour__ (hax, "auto", varargin{:}); + + if (! ishold ()) + set (hax, "view", [-37.5, 30], "box", "on", + "xgrid", "on", "ygrid", "on", "zgrid", "on"); + endif + unwind_protect_cleanup if (! isempty (oldfig)) set (0, "currentfigure", oldfig); endif end_unwind_protect - if (! ishold ()) - set (hax, "view", [-37.5, 30], - "xgrid", "on", "ygrid", "on", "zgrid", "on"); - endif - if (nargout > 0) c = ctmp; h = htmp;