plottools
translate
translate PLOT and PLOT3D data structures
Calling Sequence
Parameters
Description
Examples
translate(p, a, b)
translate(q, a, b, c)
p
-
PLOT data structure
q
PLOT3D data structure
a, b, c
real numbers; distances to translate in the x, y and z directions
The translate command takes a plot structure and produces a new plot structure translated by the specified constants.
The inputs p or q must be two- or three-dimensional plot data structures, while a, b, c are real numbers representing the distances to translate in the x, y and z directions.
The result of a call to translate is a PLOT or PLOT3D data structure containing enough information to render the plot. You can assign the data structure to a variable, save it in a file, then read it back in for redisplay. For more information about plot data structures, see plot[structure] or plot3d[structure].
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.
with⁡plottools:
with⁡plots:
p ≔ plot⁡sin⁡x,x,x=0..2⁢Pi,coords=polar:
display⁡p,translate⁡p,2,3
q ≔ plot3d⁡1,θ=0..2⁢Pi,φ=0..Pi,coords=spherical:
display⁡q,translate⁡q,1,2,3,lightmodel=light3,orientation=20,70,scaling=constrained
See Also
plot
plot3d
plot3d[structure]
plot[structure]
plots[changecoords]
plots[display]
Download Help Document