Mercurial > hg > octave-nkf
annotate scripts/plot/__plr1__.m @ 9056:b06dc393ac42
print.m: For eps output the bounding box should represent the figure's position.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 29 Mar 2009 00:32:01 -0400 |
parents | eb63fbe60fab |
children |
rev | line source |
---|---|
8920 | 1 ## Copyright (C) 1994, 1995, 1996, 1997, 2000, 2005, 2006, 2007, 2009 |
7017 | 2 ## John W. Eaton |
2313 | 3 ## |
4 ## This file is part of Octave. | |
5 ## | |
6 ## Octave is free software; you can redistribute it and/or modify it | |
7 ## under the terms of the GNU General Public License as published by | |
7016 | 8 ## the Free Software Foundation; either version 3 of the License, or (at |
9 ## your option) any later version. | |
2313 | 10 ## |
11 ## Octave is distributed in the hope that it will be useful, but | |
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 ## General Public License for more details. | |
15 ## | |
16 ## You should have received a copy of the GNU General Public License | |
7016 | 17 ## along with Octave; see the file COPYING. If not, see |
18 ## <http://www.gnu.org/licenses/>. | |
933 | 19 |
8812
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
20 ## -*- texinfo -*- |
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
21 ## @deftypefn {Function File} {} __plr1__ (@var{h}, @var{theta}, @var{fmt}) |
6895 | 22 ## Undocumented internal function. |
8812
7d48766c21a5
use consistent format for doc strings of internal functions
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
23 ## @end deftypefn |
3402 | 24 |
2314 | 25 ## Author: jwe |
26 | |
6302 | 27 function retval = __plr1__ (h, theta, fmt) |
933 | 28 |
6257 | 29 if (nargin != 3) |
6046 | 30 print_usage (); |
933 | 31 endif |
32 | |
33 [nr, nc] = size (theta); | |
34 if (nr == 1) | |
35 theta = theta'; | |
36 tmp = nr; | |
37 nr = nc; | |
38 nc = tmp; | |
39 endif | |
40 theta_i = imag (theta); | |
41 if (any (theta_i)) | |
42 rho = theta_i; | |
43 theta = real (theta); | |
44 else | |
45 rho = theta; | |
46 theta = (1:nr)'; | |
47 endif | |
48 | |
6302 | 49 retval = __plr2__ (h, theta, rho, fmt); |
933 | 50 |
51 endfunction |