[genius] Only raise window after precomputation



commit b881812792b62a2e065c6717c033bb66ffe34a68
Author: Jiri (George) Lebl <jiri lebl gmail com>
Date:   Fri Sep 5 21:30:09 2014 -0500

    Only raise window after precomputation

 examples/fourier-series-animation.gel |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/fourier-series-animation.gel b/examples/fourier-series-animation.gel
index 55ca2a1..1de9cf2 100644
--- a/examples/fourier-series-animation.gel
+++ b/examples/fourier-series-animation.gel
@@ -19,8 +19,6 @@ function F(x) = (
 LinePlotWindow=[-pi*1.1,pi*1.1,-3,3];
 LinePlotDrawLegends=false;
 
-PlotWindowPresent(); # Make sure the window is raised
-
 # For faster animation, precompute,
 print("Precomputing Fourier Series...");
 hvals = [0.0:0.1:2.0,2.0:-0.1:0.0];
@@ -31,6 +29,8 @@ for n=1 to elements(hvals) do (
 );
 print("Done... Starting animation...");
 
+PlotWindowPresent(); # Make sure the window is raised
+
 for k = 1 to 3 do (
     for n = 1 to elements(hvals) do (
         h = hvals@(n);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]