diff scripts/deprecated/replot.m @ 11530:13b4fbd2a58b

Deprecate replot function.
author Rik <octave@nomad.inbox5.com>
date Fri, 14 Jan 2011 12:37:23 -0800
parents scripts/plot/replot.m@fd0a3ac60b0e
children c792872f8942
line wrap: on
line diff
copy from scripts/plot/replot.m
copy 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