Translate
Details
- Translate[g,{x,y,…}] in effect adds {x,y,…} to each set of coordinates that appear in the graphics primitives g.
- For objects specified with scaled coordinates Scaled[{x,y}], Translate effectively applies its transformation to the corresponding ordinary coordinates.
- Normal[expr] if possible replaces all Translate[gi,…] constructs by versions of the gi in which the coordinates have explicitly been transformed.
- Translate with a list of vectors is a very efficient way to represent multiple, identical copies of an arbitrarily complex shape or image in a graphic.
Examples
open all close allBasic Examples (2)
Scope (4)
Transformation applied to a 2D shape:
gr = {Rectangle[], AbsolutePointSize[10], Opacity[1], {Magenta, Point[{0, 0}]}, {Green, Point[{1, 1}]}};Graphics[{{Opacity[.35], Blue, gr}, Translate[{Opacity[.85], Red, gr}, {.5, .5}]}]Transformation applied to a 3D shape:
gr = {Cuboid[], AbsolutePointSize[10], Opacity[1], {Magenta, Point[{0, 0, 0}]}, {Green, Point[{1, 1, 1}]}};Graphics3D[{{Opacity[.35], Blue, gr}, Translate[{Opacity[.85], Red, gr}, {.5, .5, .5}]}, Boxed -> False]The transformations can be nested:
Graphics3D[{Sphere[], Translate[Sphere[], {2, 0, 0}], Translate[Translate[Sphere[], {2, 0, 0}], {0, 2, 0}]}, Boxed -> False]Make multiple copies of a complex shape:
shape = {Cylinder[{{0, 0, 0}, {0, 0, .5}}, .125], Cone[{{0, 0, -.5}, {0, 0, .5}}, .25]};Graphics3D[Translate[shape, {{0, 0, 0}, {1, 0, 0}, {2, 0, 0}}]]Properties & Relations (2)
When possible, Normal will transform the coordinates explicitly:
Normal@Translate[Point[{x, y, z}], {x0, y0, z0}]GeometricTransformation is a generalization of Translate:
{Graphics[Translate[Circle[], {1, 3}], Axes -> True], Graphics[GeometricTransformation[Circle[], {IdentityMatrix[2], {1, 3}}], Axes -> True], Graphics[GeometricTransformation[Circle[], TranslationTransform[{1, 3}]], Axes -> True]}Related Guides
Related Workflows
- Rotate, Pan and Zoom 3D Graphics
Text
Wolfram Research (2007), Translate, Wolfram Language function, https://reference.wolfram.com/language/ref/Translate.html (updated 2010).
CMS
Wolfram Language. 2007. "Translate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/Translate.html.
APA
Wolfram Language. (2007). Translate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Translate.html
BibTeX
@misc{reference.wolfram_2026_translate, author="Wolfram Research", title="{Translate}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/Translate.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_translate, organization={Wolfram Research}, title={Translate}, year={2010}, url={https://reference.wolfram.com/language/ref/Translate.html}, note=[Accessed: 13-June-2026]}