Mercurial > hg > octave-lyh
changeset 6418:2efe282221ed
[project @ 2007-03-20 16:46:47 by jwe]
author | jwe |
---|---|
date | Tue, 20 Mar 2007 16:46:47 +0000 |
parents | e25f55e1b226 |
children | 73fcbac81f33 |
files | scripts/ChangeLog scripts/plot/drawnow.m |
diffstat | 2 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,6 +1,11 @@ +2007-03-20 John W. Eaton <jwe@octave.org> + + * plot/drawnow.m: Make __go_close_all_registered__ persistent + instead of global. From Daniel J Sebald <daniel.sebald@ieee.org>. + 2007-03-15 John W. Eaton <jwe@octave.org> - * plot/__go_draw_axes__: Make have_newer_gnuplot persistent. + * plot/__go_draw_axes__.m: Make have_newer_gnuplot persistent. From Daniel J Sebald <daniel.sebald@ieee.org>. 2007-03-15 Daniel J Sebald <daniel.sebald@ieee.org>
--- a/scripts/plot/drawnow.m +++ b/scripts/plot/drawnow.m @@ -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.