# HG changeset patch # User John W. Eaton # Date 1320431624 14400 # Node ID a05e5db7b94eb6e52171e90cbd7429cf30fd8f63 # Parent b3e1f9ae64dce79a9d18deb4052e11e468297822 have some fun with waitbar demo #2 diff -r b3e1f9ae64dc -r a05e5db7b94e scripts/plot/waitbar.m --- a/scripts/plot/waitbar.m Fri Nov 04 10:57:07 2011 -0700 +++ b/scripts/plot/waitbar.m Fri Nov 04 14:33:44 2011 -0400 @@ -139,9 +139,23 @@ %!demo %! h = waitbar (0, "please wait..."); -%! for i = 0:0.01:1 +%! for i = 0:0.01:0.6 %! waitbar (i); %! endfor +%! i = 0.3 +%! waitbar (i, h, "don't you hate taking a step backward?") +%! pause (0.5) +%! for i = i:0.005:0.7 +%! waitbar (i, h); +%! endfor +%! waitbar (i, h, "or stalling?") +%! pause (1) +%! for i = i:0.003:0.8 +%! waitbar (i, h, "just a little longer now") +%! endfor +%! for i = i:0.001:1 +%! waitbar (i, h, "please don't be impatient") +%! endfor %! close (h); %!demo