Mercurial > hg > octave-lyh
comparison scripts/plot/polar.m @ 5214:eecc24b92d97
[project @ 2005-03-16 17:14:12 by jwe]
author | jwe |
---|---|
date | Wed, 16 Mar 2005 17:14:12 +0000 |
parents | c08cb1098afc |
children | 32c569794216 |
comparison
equal
deleted
inserted
replaced
5213:390f13fc0f4a | 5214:eecc24b92d97 |
---|---|
24 ## | 24 ## |
25 ## The optional third argument specifies the line type. | 25 ## The optional third argument specifies the line type. |
26 ## @end deftypefn | 26 ## @end deftypefn |
27 ## | 27 ## |
28 ## @seealso{plot, semilogx, semilogy, loglog, mesh, contour, bar, | 28 ## @seealso{plot, semilogx, semilogy, loglog, mesh, contour, bar, |
29 ## stairs, gplot, gsplot, replot, xlabel, ylabel, and title} | 29 ## stairs, replot, xlabel, ylabel, and title} |
30 | 30 |
31 ## Author: jwe | 31 ## Author: jwe |
32 | 32 |
33 function polar (x1, x2, fmt) | 33 function polar (x1, x2, fmt) |
34 | 34 |
35 ## XXX FIXME XXX -- these plot states should really just be set | 35 ## XXX FIXME XXX -- these plot states should really just be set |
36 ## temporarily, probably inside an unwind_protect block, but there is | 36 ## temporarily, probably inside an unwind_protect block, but there is |
37 ## no way to determine their current values. | 37 ## no way to determine their current values. |
38 | 38 |
39 gset nologscale; | 39 __gset__ nologscale; |
40 gset nopolar; | 40 __gset__ nopolar; |
41 | 41 |
42 if (nargin == 3) | 42 if (nargin == 3) |
43 if (isstr (fmt)) | 43 if (isstr (fmt)) |
44 fmt = __pltopt__ ("polar", fmt); | 44 fmt = __pltopt__ ("polar", fmt); |
45 else | 45 else |