Mercurial > hg > octave-nkf
annotate scripts/plot/ishold.m @ 8890:ae51d068bbd5
__actual_axis_position__.m: New function to determine position of rendered axes.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 28 Feb 2009 22:39:33 -0500 |
parents | 73d6b71788c0 |
children | eb63fbe60fab |
rev | line source |
---|---|
7017 | 1 ## Copyright (C) 2005, 2006, 2007 John W. Eaton |
5406 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7016 | 7 ## the Free Software Foundation; either version 3 of the License, or (at |
8 ## your option) any later version. | |
5406 | 9 ## |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
7016 | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | |
5406 | 18 |
19 ## -*- texinfo -*- | |
6713 | 20 ## @deftypefn {Function File} {} ishold |
6895 | 21 ## Return true if the next line will be added to the current plot, or |
22 ## false if the plot device will be cleared before drawing the next line. | |
5406 | 23 ## @end deftypefn |
24 | |
25 function retval = ishold () | |
26 | |
27 if (nargin == 0) | |
8190
73d6b71788c0
use case-insensitive comparison for graphics properties; misc style fixes
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
28 retval = strcmpi (get (gca (), "nextplot"), "add"); |
5406 | 29 else |
6046 | 30 print_usage (); |
5406 | 31 endif |
32 | |
33 endfunction |