changeset 26668:fec69a310833

__ezplot__.m: for ezplot3, draw "animate" plot just once. * __ezplot__.m: If "animate" option given for ezplot3, draw plot using comet3(). Otherwise, draw plot using plot3().
author Rik <rik@octave.org>
date Sat, 02 Feb 2019 18:21:24 -0800
parents 3c4ba50b2024
children 879f22ca59c8
files scripts/plot/draw/private/__ezplot__.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__ezplot__.m	Sat Feb 02 18:14:43 2019 -0800
+++ b/scripts/plot/draw/private/__ezplot__.m	Sat Feb 02 18:21:24 2019 -0800
@@ -445,10 +445,10 @@
       endif
     elseif (isplot3)
       if (animate)
-        ## draw animation, then replace with true plot3
-        comet3 (hax, X, Y, Z, .05);
+        comet3 (hax, X, Y, Z);
+      else
+        h = feval (pltfunc, hax, X, Y, Z);
       endif
-      h = feval (pltfunc, hax, X, Y, Z);
       grid (hax, "on");
       zlabel (hax, "z");
     else  # mesh and surf plots