coords - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Set Coordinate System for 3-D Plots

 

Description

Examples

Description

• 

The default coordinate system for all three dimensional plotting commands is the Cartesian coordinate system.  The coords option allows the user to alter this coordinate system.  The alternate choices are: bipolarcylindrical, bispherical, cardioidal, cardioidcylindrical, casscylindrical, confocalellip, confocalparab, conical, cylindrical, ellcylindrical, ellipsoidal, hypercylindrical, invcasscylindrical, invellcylindrical, invoblspheroidal, invprospheroidal, logcoshcylindrical, logcylindrical, maxwellcylindrical, oblatespheroidal, paraboloidal, paracylindrical, prolatespheroidal, rosecylindrical, sixsphere, spherical, spherical_math, spherical_physics, tangentcylindrical, tangentsphere, and toroidal.

• 

For a description of each of the above coordinate systems, see the coords help page.

• 

When using Cartesian coordinates, z, the vertical coordinate, is expressed as a function of x and y: plot3d⁡z⁡x,y,x=a..b,y=c..d.

• 

For alternate coordinate systems this is interpreted differently. For example, when using cylindrical coordinates, Maple expects the command to be of the following form: plot3d⁡r⁡θ,z,θ=a..b,z=c..d,coords=cylindrical.

  

r, the distance to the projection of the point in the x-y plane from the origin, is a function of theta, the counterclockwise angle from the positive x-axis, and of z, the height above the x-y plane.

  

For spherical coordinates the interpretation is: plot3d⁡r⁡θ,φ,θ=a..b,φ=c..d,coords=spherical.

  

where theta is the counterclockwise angle measured from the x-axis in the x-y plane.  phi is the angle measured from the positive z-axis, or the colatitude.  These angles determine the direction from the origin while the distance from the origin, r, is a function of phi and theta.  A second convention for spherical coordinates is also available, called spherical_physics, in which the meanings of the second and third coordinates are swapped.  For details, see coords. Other coordinate systems have similar interpretations.

• 

The conversions from the various coordinate systems to Cartesian coordinates can be found in coords.

• 

All coordinate systems are also valid for parametrically defined 3-D plots with the same interpretations of the coordinate system transformations.

Examples

> 

plot3d⁡sin⁡x+sin⁡y,x=0..2⁢π,y=0..2⁢π,axes=boxed

> 

plot3d⁡height,angle=0..2⁢π,height=−5..5,coords=cylindrical,title=CONE

> 

plot3d⁡1,t=0..2⁢π,p=0..π,coords=spherical,scaling=constrained

> 

plot3d⁡θ,θ=0..8⁢π,z=−1..1,coords=cylindrical

> 

plot3d⁡θ,θ=0..8⁢π,φ=0..π,coords=spherical,style=wireframe

> 

plot3d⁡θ,θ=0..8⁢π,φ=0..π,coords=toroidal⁡2,style=wireframe

Define a new cylindrical system so z=z⁡r,θ instead of r=r⁡θ,z:

> 

addcoords⁡z_cylindrical,z,r,θ,r⁢cos⁡θ,r⁢sin⁡θ,z

> 

plot3d⁡r⁢cos⁡θ,r=0..10,θ=0..2⁢π,coords=z_cylindrical,title=z_cylindrical,orientation=−132,71,axes=boxed

The command to create the plot from the Plotting Guide is

> 

plot3d⁡r⁢cos⁡θ,r=0..10,θ=0..2⁢π,coords=cylindrical,orientation=100,71

See Also

addcoords

coords

plot3d

plot3d/option

plots[changecoords]

plots[coordplot]