Mercurial > hg > octave-nkf
diff scripts/plot/drawnow.m @ 6405:b298a4c12fc3
[project @ 2007-03-14 16:51:28 by jwe]
author | jwe |
---|---|
date | Wed, 14 Mar 2007 16:51:30 +0000 |
parents | 4553ff6b7ec7 |
children | 2efe282221ed |
line wrap: on
line diff
--- a/scripts/plot/drawnow.m +++ b/scripts/plot/drawnow.m @@ -28,9 +28,9 @@ ## Use this instead of persistent and mlock so that drawnow can be ## replaced. - global __uiobject_close_all_registered__; - if (isempty (__uiobject_close_all_registered__)) - __lock_global__ ("__uiobject_close_all_registered__"); + global __go_close_all_registered__; + if (isempty (__go_close_all_registered__)) + __lock_global__ ("__go_close_all_registered__"); endif ## Use this instead of calling gcf to avoid creating a figure. @@ -49,9 +49,9 @@ cmd = sprintf ("%s -title \"Figure %d\"", cmd, h); endif plot_stream = popen (cmd, "w"); - if (isempty (__uiobject_close_all_registered__)) - atexit ("__uiobject_close_all__"); - __uiobject_close_all_registered__ = true; + if (isempty (__go_close_all_registered__)) + atexit ("__go_close_all__"); + __go_close_all_registered__ = true; endif if (plot_stream < 0) error ("drawnow: failed to open connection to gnuplot"); @@ -70,7 +70,7 @@ endif if (nargin == 2 || strcmp (f.visible, "on")) - __uiobject_draw_figure__ (f, plot_stream); + __go_draw_figure__ (f, plot_stream); endif __request_drawnow__ (false);