create a plot in polar coordinates with polar axes - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : plots : plots/polarplot

plots[polarplot] - create a plot in polar coordinates with polar axes

Calling Sequence

polarplot(expr, theta=a1..a2, opts)

polarplot(f, a1..a2, opts)

polarplot(m, opts)

polarplot(v1, v2, opts)

Parameters

expr

-

expression in theta

f

-

procedure or operator

a1, a2

-

(optional) real constants

m

-

Matrix or list of lists

v1, v2

-

Vectors or lists

opts

-

plotting options

Description

• 

The polarplot command creates a plot in polar coordinates with polar axes.

• 

In the first calling sequence, the first argument expr is an expression of the form r(theta). This produces a curve with points [r(theta), theta], where theta is the angle and r is the radius. The second argument is optional and if omitted, the default range is 0..2*Pi.

• 

The second calling sequence uses operator form. The first argument is a procedure or operator that has a single input parameter representing the angle and returns the associated radius value. As with the first calling sequence, the second argument is optional and defaults to 0..2*Pi.

• 

The third and fourth calling sequences allow points in the form [r, theta] to be given to the polarplot command. Here, m is an n-by-2 matrix or a list of n two-element lists, while v1 and v2 are n-dimensional vectors holding the r and theta values respectively.  The n points are connected to produce a curve. To generate points only, add the style=point option.

• 

The calling sequences for the polarplot command are similar to those for the plot command, though not all features of the plot command are available. You may find it helpful to read the plot help page for more information on advanced usage.

• 

Options as listed below are available for controlling the display of the angular and radial axes.  All other options are the same ones available for general 2-D plots but not all of those options are applicable to polar plots.  See the plot/options help page for more details.

• 

All options that relate to axes are now applied to the radial and angular axes.  Note that the radial axis is considered the first axis and the angular axis the second.  Options axis[radial] and axis[angular] are equivalent to the general plot options axis[1] and axis[2].  However, the view option continues to refer to the view in Cartesian coordinates.

• 

The radialstart=r0 option allows you to use a negative value as the starting radius value at the center of the plot. This option is meant to provide a mechanism for using negative values for the radius.  To restrict the view of the plot to radius values greater than r0, a positive value, use the coordinateview option.

• 

The mode=log suboption cannot be used with the angular axis, and it cannot be used with the radial axis when the radialstart option is provided.

• 

To get a polar plot on Cartesian axes instead of polar axes, use the axiscoordinates=cartesian option.

• 

Multiple polar plots may be created by using a list of expressions or data sets as the first value.  Polar plots may also be combined into a single plot using the plots[display] command.  However, merging polar plots created with different options or merging polar and cartesian plots can lead to unpredictable results.

• 

Polar axes are not available for all interfaces and devices.  For more information, see plot/interface.

Examples

withplots:

Plot the origin-centered circle of radius 1, described by rtheta=1.

polarplot1

Plot rtheta=theta and change the radial axis to blue.

polarplotθ,θ=0..2π,axisradial=color=Blue

Plot two parametrically defined curves, the first in red and the second in blue.

polarplott,t,t=π..π,2cost,sint,t=π..π,numpoints=50

Define procedures S and R as shown below. Then plot the parametric curve with first component R and second component t->t.

S:=t→100100+tπ28:

R:=t→St2sin7tcos30t2:

polarplotR,t→t,π2..3π2,numpoints=2000,axes=none

The command to create the plot from the Plotting Guide is a parametrically defined curve given by r=cost, theta=sint.

polarplotcost,sint,t=0..4π,color=Gold

See Also

plot, plot/interface, plot/options, plots/display


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam