Qu

polarplot

Builtin index · Plotting

polarplot(theta, r)

Input: theta, r · Output: no output

What it is

Converts polar coordinates theta (Vec of numbers, radians) and r (Vec of numbers, radius) to Cartesian (x=r·cos θ, y=r·sin θ) and draws an ordinary line/scatter series. Not a native polar-axis renderer — no circular gridlines, angular ticks, or radial axis; it's a correctly-shaped curve on Cartesian-looking axes.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
polarplot(theta, r)
theta Vec or numbernot documented yet
r Vec or numbernot documented yet
no outputNot a native polar-axis renderer — no circular gridlines, angular ticks, or radial axis; it's a correctly-shaped curve on Cartesian-looking axes.

Examples

From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.

idx = 0 to 100
theta = idx ./ 100 .* (2*pi)
r = ones(101)
polarplot(theta, r)   # a unit circle, drawn as an (x, y) curve

0° 30° 60° 90° 120° 150° 180° 210° 240° 270° 300° 330° 0.25 0.5 0.75 1 x x^2

from fundamentals