[genius] Fri Jan 09 18:19:44 2015 Jiri (George) Lebl <jirka 5z com>



commit e414ab085a91675db1d23954f2609bb08e0c89e7
Author: Jiri (George) Lebl <jiri lebl gmail com>
Date:   Fri Jan 9 18:19:47 2015 -0600

    Fri Jan 09 18:19:44 2015  Jiri (George) Lebl <jirka 5z com>
    
        * examples/eulers-method-graphs-exp.gel: present plot window after
          each plot so that the console doesn't keep popping up

 ChangeLog                             |    5 +++++
 examples/eulers-method-graphs-exp.gel |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e1844bb..ab5a318 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 09 18:19:44 2015  Jiri (George) Lebl <jirka 5z com>
+
+       * examples/eulers-method-graphs-exp.gel: present plot window after
+         each plot so that the console doesn't keep popping up
+
 Fri Oct 10 17:16:38 2014  Jiri (George) Lebl <jirka 5z com>
 
        * src/funclib.c: min/max now check their arguments better, especially
diff --git a/examples/eulers-method-graphs-exp.gel b/examples/eulers-method-graphs-exp.gel
index d01bba3..a66ab1d 100644
--- a/examples/eulers-method-graphs-exp.gel
+++ b/examples/eulers-method-graphs-exp.gel
@@ -25,6 +25,7 @@ for j=2 to (4/h)+1 do (
   yy@(j) = yy@(j-1)+g(xx@(j-1),yy@(j-1))*h;
 );
 LinePlotDrawLine ([xx',yy'],"color","darkgreen");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("Step size h = 1","Next");
 
 h=(1/2);
@@ -33,6 +34,7 @@ for j=2 to (4/h)+1 do (
   yy@(j) = yy@(j-1)+g(xx@(j-1),yy@(j-1))*h
 );
 LinePlotDrawLine ([xx',yy'],"color","blue");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("h = 0.5 = 1/2","Next");
 
 h=(1/4);
@@ -41,6 +43,7 @@ for j=2 to (4/h)+1 do (
   yy@(j) = yy@(j-1)+g(xx@(j-1),yy@(j-1))*h
 );
 LinePlotDrawLine ([xx',yy'],"color","orange");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("h = 0.25 = 1/4","Next");
 
 h=(1/8);
@@ -49,6 +52,7 @@ for j=2 to (4/h)+1 do (
   yy@(j) = yy@(j-1)+g(xx@(j-1),yy@(j-1))*h
 );
 LinePlotDrawLine ([xx',yy'],"color","brown");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("h = 0.125 = 1/8","Next");
 
 h=(1/16);
@@ -57,6 +61,7 @@ for j=2 to (4/h)+1 do (
   yy@(j) = yy@(j-1)+g(xx@(j-1),yy@(j-1))*h
 );
 LinePlotDrawLine ([xx',yy'],"color","darkgreen");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("h = 0.0625 = 1/16","Next");
 
 h=(1/32);
@@ -65,6 +70,7 @@ for j=2 to (4/h)+1 do (
   yy@(j) = yy@(j-1)+g(xx@(j-1),yy@(j-1))*h
 );
 LinePlotDrawLine ([xx',yy'],"color","blue");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("h=0.03125=1/32","Next");
 
 # The real solution
@@ -73,4 +79,5 @@ for j=2 to (4/h)+1 do (
   yy@(j) = e^(xx@(j))
 );
 LinePlotDrawLine ([xx',yy'],"color","red");
+PlotWindowPresent(); # Make sure the window is raised
 AskButtons("The real solution","End");


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