Fixes demos Simulation/ Wheel Simulation / All 68/8468/2
Vincent COUVERT [Wed, 1 Aug 2012 11:57:45 +0000 (13:57 +0200)]
Change-Id: Iafb621c3a61de7f27533af9fa705993f0cb88e60

scilab/modules/differential_equations/demos/wheel/wheel_show.sci

index a46496c..55043b5 100644 (file)
@@ -100,10 +100,9 @@ function []=wheel_show(xx,t,p)
         break;
       end
 
-      drawlater();
-
       realtime(i);
 
+      drawlater();
       if is_handle_valid(wheel) then
         wheel.data  = [xu(:,i) yu(:,i) zu(:,i)];
       end
@@ -118,10 +117,10 @@ function []=wheel_show(xx,t,p)
 
       drawnow();
     end
-    
+
     if ~is_handle_valid(curAxe) then
       break;
-    end 
+    end
     [wheel_rti]=resume(wheel_rti);
 
 endfunction