changeset 11530:13b4fbd2a58b

Deprecate replot function.
author Rik <octave@nomad.inbox5.com>
date Fri, 14 Jan 2011 12:37:23 -0800
parents f98f925d8e5c
children f976dd63129c
files ChangeLog NEWS scripts/deprecated/module.mk scripts/deprecated/replot.m scripts/plot/module.mk scripts/plot/replot.m
diffstat 6 files changed, 49 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- 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  <octave@nomad.inbox5.com>
+
+	* NEWS: Add replot to deprecated function list.
+
 2011-01-14  John W. Eaton  <jwe@octave.org>
 
 	* bootstrap.conf (gnulib_modules): Include filemode in the list.
--- 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:
 ---------------------------------------------------------
--- 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 \
--- /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
+## <http://www.gnu.org/licenses/>.
+
+## -*- 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
--- 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 \
--- 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
-## <http://www.gnu.org/licenses/>.
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {} replot ()
-## Refresh the plot window.
-## @end deftypefn
-
-## Author: jwe
-
-function replot ()
-  
-  if (nargin == 0)
-    drawnow ();
-  else
-    print_usage ();
-  endif
-
-endfunction