annotate scripts/deprecated/replot.m @ 14182:f8d99761244c stable

test: Expand %!testif functionality to multiple conditions * test.m: Add testing for multiple conditions in %!testif statement. * svds.m, eigs.cc: Test for ARPACK and other libraries before running some tests.
author Rik <octave@nomad.inbox5.com>
date Mon, 09 Jan 2012 13:32:44 -0800
parents 72c96de7a403
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14138
72c96de7a403 maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents: 11587
diff changeset
1 ## Copyright (C) 2005-2012 John W. Eaton
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
2 ##
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
4 ##
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6257
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6257
diff changeset
8 ## your option) any later version.
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
9 ##
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
14 ##
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6257
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6257
diff changeset
17 ## <http://www.gnu.org/licenses/>.
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
18
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
19 ## -*- texinfo -*-
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
20 ## @deftypefn {Function File} {} replot ()
6146
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6046
diff changeset
21 ## Refresh the plot window.
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
22 ## @end deftypefn
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
23
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
24 ## Author: jwe
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
25
11530
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
26 ## Deprecated in version 3.4
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
27
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
28 function replot ()
11587
c792872f8942 all script files: untabify and strip trailing whitespace
John W. Eaton <jwe@octave.org>
parents: 11530
diff changeset
29
11530
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
30 persistent warned = false;
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
31 if (! warned)
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
32 warned = true;
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
33 warning ("Octave:deprecated-function",
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
34 "replot is obsolete and will be removed from a future version of Octave; please use refresh instead");
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
35 endif
13b4fbd2a58b Deprecate replot function.
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
36
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
37 if (nargin == 0)
6257
44c91c5dfe1d [project @ 2007-01-30 19:16:52 by jwe]
jwe
parents: 6179
diff changeset
38 drawnow ();
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
39 else
6046
34f96dd5441b [project @ 2006-10-10 16:10:25 by jwe]
jwe
parents: 5493
diff changeset
40 print_usage ();
5214
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
41 endif
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
42
eecc24b92d97 [project @ 2005-03-16 17:14:12 by jwe]
jwe
parents:
diff changeset
43 endfunction