Plot polar coordinates
polarplot(theta,rho,[style,strf,leg,rect])
polarplot(theta,rho,<opt_args>)
:rho a vector, the radius values : :theta a vector with same size than rho, the angle values. : :<opt_args> a sequence of statements key1=value1, key2=value2, ...
where keys may be style, leg, rect, strf or frameflag
: :style is a real row vector of size nc. The style to use for curve i is defined by style(i). The default style is 1:nc (1 for the first curve, 2 for the second, etc.).
- :- if style(i) is negative, the curve is plotted using the mark with
- id abs(style(i))+1; use xset() to see the mark ids.
- : :- if style(i) is strictly positive, a plain line with color id
- style(i) or a dashed line with dash id style(i) is used; use xset() to see the color ids.
- : :- When only one curve is drawn, style can be the row vector of
- size 2 [sty,pos] where sty is used to specify the style and pos is an integer ranging from 1 to 6 which specifies a position to use for the caption. This can be useful when a user wants to draw multiple curves on a plot by calling the function plot2d several times and wants to give a caption for each curve.
:
:default The default is “030”. : :x controls the display of captions,
:x=0 no captions. : :x=1 captions are displayed. They are given by the optional argument
leg.:
: :y=3 like y=1 but produces isoview scaling. : :y=4 like y=2 but produces isoview scaling. : :y=5 like y=1 but plot2d can change the boundaries of the plot
and the ticks of the axes to produce pretty graduations. When the zoom button is activated, this mode is used.
:
:
:
polarplot creates a polar coordinate plot of the angle theta versus the radius rho. theta is the angle from the x-axis to the radius vector specified in radians; rho is the length of the radius vector specified in dataspace units. Note that negative rho values cause the corresponding curve points to be reflected across the origin.
t= 0:.01:2*%pi;
`clf`_();polarplot(`sin`_(7*t),`cos`_(8*t))
`clf`_();polarplot([`sin`_(7*t') `sin`_(6*t')],[`cos`_(8*t') `cos`_(8*t')],[1,2])
t= 0:.01:2*%pi;
`clf`_();polarplot([`sin`_(7*t') `sin`_(6*t')],[`cos`_(8*t') `cos`_(8*t')],[1,2])
t = 0:0.01:2*%pi;
polarplot(t, -1 + `sin`_(t));