view scripts/plot/polar.m @ 131:5b46fbec1488

[project @ 1993-09-28 14:23:43 by jwe]
author jwe
date Tue, 28 Sep 1993 14:23:47 +0000
parents b4df021f796c
children 16a24e76d6e0
line wrap: on
line source

function polar (x1, x2)

# usage: polar (theta, rho)
#
# Make a 2D plot given polar the coordinates theta and rho.
#
# See also: plot, semilogx, semilogy, loglog, mesh, contour, bar,
#           stairs, gplot, gsplot, replot, xlabel, ylabel, title 

  set nologscale;
  set nopolar;

  if (nargin == 1)
    polar_int (x1);
  elseif (nargin == 2)
    polar_int (x1, x2);
  else
    usage = sprintf ("usage: polar (x)\n");
    usage = sprintf ("%s       polar (x, y)", usage);
    error (usage);
  endif

endfunction