diff scripts/plot/draw/surface.m @ 17720:1ab8e21d9cfc

Further corrections to parenting of axes (bug #39813) * scripts/plot/util/newplot.m: Accept multiple graphic handles to save. Also save handles when axis nextplot property is "replacechildren". Correct failing %!test. * scripts/plot/util/__plt_get_axis_arg__.m: Return axis as first value, "parent" handle as second value. * scripts/plot/draw/surface.m: Get axis from __plt_get_axis_arg__ and ignore any other returned handles.
author Rik <rik@octave.org>
date Mon, 21 Oct 2013 22:25:15 -0700 (2013-10-22)
parents 7bb76a22cde1
children d63878346099
line wrap: on
line diff
--- a/scripts/plot/draw/surface.m
+++ b/scripts/plot/draw/surface.m
@@ -53,6 +53,8 @@
 
   if (isempty (hax))
     hax = gca ();
+  else
+    hax = hax(1);
   endif
   
   [htmp, bad_usage] = __surface__ (hax, varargin{:});