plottools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : Plot Tools : plottools/transform

plottools

  

transform

  

generate procedure to transform plots

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

transform(f)

Parameters

f

-

procedure

Description

• 

The transform command generates a procedure that can be used to change plot data structures by applying the procedure f to all the points in the plot structure.

• 

The procedure f represents a mapping

f:RmRn

  

where m and n can take values 2 or 3. The procedure must take as input m arguments and output a list of n components.

• 

Examples of the use of this command include embedding 2-D plots into 3-D space, changing coordinate systems or transforming curves in the complex plane into the Riemann Sphere.

• 

The result of a call to transform is a procedure that takes a 2-D or 3-D plot data structure as parameter. You can assign the procedure to a variable, and apply the procedure to various plots.  For more information about plot data structures, see plot/structure.

• 

The transform command is usually used with [m, n] equal to [2, 2], [2, 3], or [3, 3].  It returns a transformation procedure in the case where m is 3 and n is 2.  However, this procedure works only on those 3-D plot objects that have 2-D counterparts.

• 

Several commands in the plottools package can transform plots. For a list, see the plottools help page.  The plots[changecoords] and plots[display] commands can also be used to transform plots.

• 

If the transform command is applied to a filled shape, such as an arrow or rectangle, the polygon that is generated might not resemble the result one would expect from a transformation of the entire shape. That is because the transform command works only on the points of the plot data structure, which are typically the vertices and not interior points.

Examples

withplottools:

withplots:

Draw contour plots onto axes of 3-D plots.

pplot3d5xx2+y2+1,x=3..3,y=3..3,style=contour,contours=8:

qcontourplot5xx2+y2+1,x=3..3,y=3..3,filled=true:

ftransformx,y→x,y,3:

displayp,fq,orientation=50,40

Change coordinate systems.

pplot3d1.3xsiny,x,y,x=1..2π,y=0..π:

ftransformr,th,ph→rsinphcosth,rsinphsinth,rcosph:

displayp,fp,orientation=145,20,scaling=constrained

See Also

plot/structure

plot3d

plots[changecoords]

plots[contourplot]

plots[display]