# HG changeset patch # User Rik # Date 1295037443 28800 # Node ID 13b4fbd2a58b9082b76bb4e85e121543c3503d0e # Parent f98f925d8e5c48796b1422e151d1b5e7905b566e Deprecate replot function. diff -r f98f925d8e5c -r 13b4fbd2a58b ChangeLog --- a/ChangeLog Fri Jan 14 11:59:59 2011 -0800 +++ b/ChangeLog Fri Jan 14 12:37:23 2011 -0800 @@ -1,3 +1,7 @@ +2010-01-14 Rik + + * NEWS: Add replot to deprecated function list. + 2011-01-14 John W. Eaton * bootstrap.conf (gnulib_modules): Include filemode in the list. diff -r f98f925d8e5c -r 13b4fbd2a58b NEWS --- a/NEWS Fri Jan 14 11:59:59 2011 -0800 +++ b/NEWS Fri Jan 14 12:37:23 2011 -0800 @@ -410,7 +410,7 @@ release after 3.4): autocor betai dispatch gammai values - autocov cellidx fstat is_global + autocov cellidx fstat is_global replot Summary of important user-visible changes for version 3.2: --------------------------------------------------------- diff -r f98f925d8e5c -r 13b4fbd2a58b scripts/deprecated/module.mk --- a/scripts/deprecated/module.mk Fri Jan 14 11:59:59 2011 -0800 +++ b/scripts/deprecated/module.mk Fri Jan 14 12:37:23 2011 -0800 @@ -21,6 +21,7 @@ deprecated/loadimage.m \ deprecated/mark_as_command.m \ deprecated/mark_as_rawcommand.m \ + deprecated/replot.m \ deprecated/setstr.m \ deprecated/spatan2.m \ deprecated/spchol2inv.m \ diff -r f98f925d8e5c -r 13b4fbd2a58b scripts/deprecated/replot.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/deprecated/replot.m Fri Jan 14 12:37:23 2011 -0800 @@ -0,0 +1,43 @@ +## Copyright (C) 2005-2011 John W. Eaton +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + +## -*- texinfo -*- +## @deftypefn {Function File} {} replot () +## Refresh the plot window. +## @end deftypefn + +## Author: jwe + +## Deprecated in version 3.4 + +function replot () + + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "replot is obsolete and will be removed from a future version of Octave; please use refresh instead"); + endif + + if (nargin == 0) + drawnow (); + else + print_usage (); + endif + +endfunction diff -r f98f925d8e5c -r 13b4fbd2a58b scripts/plot/module.mk --- a/scripts/plot/module.mk Fri Jan 14 11:59:59 2011 -0800 +++ b/scripts/plot/module.mk Fri Jan 14 12:37:23 2011 -0800 @@ -141,7 +141,6 @@ plot/quiver3.m \ plot/refresh.m \ plot/refreshdata.m \ - plot/replot.m \ plot/ribbon.m \ plot/rose.m \ plot/saveas.m \ diff -r f98f925d8e5c -r 13b4fbd2a58b scripts/plot/replot.m --- a/scripts/plot/replot.m Fri Jan 14 11:59:59 2011 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -## Copyright (C) 2005-2011 John W. Eaton -## -## This file is part of Octave. -## -## Octave is free software; you can redistribute it and/or modify it -## under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or (at -## your option) any later version. -## -## Octave is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Octave; see the file COPYING. If not, see -## . - -## -*- texinfo -*- -## @deftypefn {Function File} {} replot () -## Refresh the plot window. -## @end deftypefn - -## Author: jwe - -function replot () - - if (nargin == 0) - drawnow (); - else - print_usage (); - endif - -endfunction