changeset 25330:55c1b0e5b07a

maint: merge stable to default.
author Rik <rik@octave.org>
date Mon, 30 Apr 2018 06:56:18 -0700
parents 3b96348d5ccd (current diff) c8fc547ab5dd (diff)
children e0f63e77a715
files
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/patch.m	Sat Apr 28 21:08:18 2018 -0700
+++ b/scripts/plot/draw/patch.m	Mon Apr 30 06:56:18 2018 -0700
@@ -89,10 +89,11 @@
     print_usage ();
   endif
 
-  ## FIXME: This is a hack to get 'layer' command to work for 2D patches
-  ##        Alternative is much more complicated surgery in graphics.cc.
-  ##        of get_children_limits() for 'z' axis and 'patch' object type.
-  if (! ishold ())
+  ## FIXME: ishold called this way is very slow. 
+  if (! ishold (hax))
+    ## FIXME: This is a hack to get 'layer' command to work for 2D patches
+    ##        Alternative is much more complicated surgery in graphics.cc.
+    ##        of get_children_limits() for 'z' axis and 'patch' object type.
     if (isempty (get (htmp, "zdata")))
       set (hax, "zlim", [-1 1]);
     endif
--- a/scripts/plot/draw/surface.m	Sat Apr 28 21:08:18 2018 -0700
+++ b/scripts/plot/draw/surface.m	Mon Apr 30 06:56:18 2018 -0700
@@ -189,7 +189,8 @@
   h = __go_surface__ (ax, "xdata", x, "ydata", y, "zdata", z, "cdata", c,
                       other_args{:});
 
-  if (! ishold ())
+  ## FIXME: ishold called this way is very slow. 
+  if (! ishold (ax))
     set (ax, "view", [0, 90]);
   endif