generate procedure to transform plots
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
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.
Draw contour plots onto axes of 3-D plots.
p ≔ plot3d⁡−5⁢xx2+y2+1,x=−3..3,y=−3..3,style=contour,contours=8:
q ≔ contourplot⁡−5⁢xx2+y2+1,x=−3..3,y=−3..3,filled=true:
f ≔ transform⁡x,y→x,y,−3:
Change coordinate systems.
p ≔ plot3d⁡1.3x⁢sin⁡y,x,y,x=−1..2⁢Pi,y=0..Pi:
f ≔ transform⁡r,th,ph→r⁢sin⁡ph⁢cos⁡th,r⁢sin⁡ph⁢sin⁡th,r⁢cos⁡ph:
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.