comparison scripts/plot/drawnow.m @ 6418:2efe282221ed

[project @ 2007-03-20 16:46:47 by jwe]
author jwe
date Tue, 20 Mar 2007 16:46:47 +0000
parents b298a4c12fc3
children 73fcbac81f33
comparison
equal deleted inserted replaced
6417:e25f55e1b226 6418:2efe282221ed
24 24
25 ## Author: jwe 25 ## Author: jwe
26 26
27 function drawnow (term, file) 27 function drawnow (term, file)
28 28
29 ## Use this instead of persistent and mlock so that drawnow can be 29 ## If drawnow is cleared, it is possible to register __go_close_all__
30 ## replaced. 30 ## more than once, but that is not fatal.
31 global __go_close_all_registered__; 31 persistent __go_close_all_registered__;
32 if (isempty (__go_close_all_registered__))
33 __lock_global__ ("__go_close_all_registered__");
34 endif
35 32
36 ## Use this instead of calling gcf to avoid creating a figure. 33 ## Use this instead of calling gcf to avoid creating a figure.
37 34
38 h = get (0, "currentfigure"); 35 h = get (0, "currentfigure");
39 36