# HG changeset patch # User jwe # Date 1174409207 0 # Node ID 2efe282221ed58682aa73964d57b8972cf781b14 # Parent e25f55e1b226442c902b64cbf36790cdb19df28d [project @ 2007-03-20 16:46:47 by jwe] diff -r e25f55e1b226 -r 2efe282221ed scripts/ChangeLog --- a/scripts/ChangeLog Tue Mar 20 01:09:03 2007 +0000 +++ b/scripts/ChangeLog Tue Mar 20 16:46:47 2007 +0000 @@ -1,6 +1,11 @@ +2007-03-20 John W. Eaton + + * plot/drawnow.m: Make __go_close_all_registered__ persistent + instead of global. From Daniel J Sebald . + 2007-03-15 John W. Eaton - * plot/__go_draw_axes__: Make have_newer_gnuplot persistent. + * plot/__go_draw_axes__.m: Make have_newer_gnuplot persistent. From Daniel J Sebald . 2007-03-15 Daniel J Sebald diff -r e25f55e1b226 -r 2efe282221ed scripts/plot/drawnow.m --- a/scripts/plot/drawnow.m Tue Mar 20 01:09:03 2007 +0000 +++ b/scripts/plot/drawnow.m Tue Mar 20 16:46:47 2007 +0000 @@ -26,12 +26,9 @@ function drawnow (term, file) - ## Use this instead of persistent and mlock so that drawnow can be - ## replaced. - global __go_close_all_registered__; - if (isempty (__go_close_all_registered__)) - __lock_global__ ("__go_close_all_registered__"); - endif + ## If drawnow is cleared, it is possible to register __go_close_all__ + ## more than once, but that is not fatal. + persistent __go_close_all_registered__; ## Use this instead of calling gcf to avoid creating a figure.