 translate - Maple Help

plottools

 translate
 translate PLOT and PLOT3D data structures Calling Sequence translate(p, a, b) translate(q, a, b, c) Parameters

 p - PLOT data structure q - PLOT3D data structure a, b, c - real numbers; distances to translate in the x, y and z directions Description

 • 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. Examples

 > $\mathrm{with}\left(\mathrm{plottools}\right):$
 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $p≔\mathrm{plot}\left(\left[\mathrm{sin}\left(x\right),x,x=0..2\mathrm{Pi}\right],\mathrm{coords}=\mathrm{polar}\right):$
 > $\mathrm{display}\left(\left[p,\mathrm{translate}\left(p,2,3\right)\right]\right)$ > $q≔\mathrm{plot3d}\left(1,\mathrm{θ}=0..2\mathrm{Pi},\mathrm{φ}=0..\mathrm{Pi},\mathrm{coords}=\mathrm{spherical}\right):$
 > $\mathrm{display}\left(\left[q,\mathrm{translate}\left(q,1,2,3\right)\right],\mathrm{lightmodel}=\mathrm{light3},\mathrm{orientation}=\left[20,70\right],\mathrm{scaling}=\mathrm{constrained}\right)$ 