Mercurial > hg > octave-lyh
comparison scripts/plot/waitbar.m @ 13818:a05e5db7b94e
have some fun with waitbar demo #2
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 04 Nov 2011 14:33:44 -0400 |
parents | b3e1f9ae64dc |
children | 4d1927edf194 |
comparison
equal
deleted
inserted
replaced
13817:b3e1f9ae64dc | 13818:a05e5db7b94e |
---|---|
137 %! endfor | 137 %! endfor |
138 %! close (h); | 138 %! close (h); |
139 | 139 |
140 %!demo | 140 %!demo |
141 %! h = waitbar (0, "please wait..."); | 141 %! h = waitbar (0, "please wait..."); |
142 %! for i = 0:0.01:1 | 142 %! for i = 0:0.01:0.6 |
143 %! waitbar (i); | 143 %! waitbar (i); |
144 %! endfor | |
145 %! i = 0.3 | |
146 %! waitbar (i, h, "don't you hate taking a step backward?") | |
147 %! pause (0.5) | |
148 %! for i = i:0.005:0.7 | |
149 %! waitbar (i, h); | |
150 %! endfor | |
151 %! waitbar (i, h, "or stalling?") | |
152 %! pause (1) | |
153 %! for i = i:0.003:0.8 | |
154 %! waitbar (i, h, "just a little longer now") | |
155 %! endfor | |
156 %! for i = i:0.001:1 | |
157 %! waitbar (i, h, "please don't be impatient") | |
144 %! endfor | 158 %! endfor |
145 %! close (h); | 159 %! close (h); |
146 | 160 |
147 %!demo | 161 %!demo |
148 %! h1 = waitbar (0, "Waitbar #1"); | 162 %! h1 = waitbar (0, "Waitbar #1"); |