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 5 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
+++ b/NEWS
@@ -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
+++ b/scripts/deprecated/module.mk
@@ -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 \
rename from scripts/plot/replot.m
rename to scripts/deprecated/replot.m
--- a/scripts/plot/replot.m
+++ b/scripts/deprecated/replot.m
@@ -23,8 +23,17 @@
 
 ## 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
--- a/scripts/plot/module.mk
+++ b/scripts/plot/module.mk
@@ -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 \