is a symbol that can appear at a particular position in a Grid or related construct to indicate that the corresponding position is occupied by a spanning element that appears above and to its left.
SpanFromBoth
is a symbol that can appear at a particular position in a Grid or related construct to indicate that the corresponding position is occupied by a spanning element that appears above and to its left.
Details
- {{e,SpanFromLeft,SpanFromLeft,…},{SpanFromAbove,SpanFromBoth,SpanFromBoth,…},…} can be used to indicate that an element spans both multiple rows and multiple columns.
Examples
open all close allBasic Examples (2)
Scope (2)
Graphics will default to filling the available space:
x = Graphics[Rectangle[], ImageSize -> Automatic];GraphicsGrid[{{x, SpanFromLeft, x}, {SpanFromAbove, SpanFromBoth, x}, {x, x, x}}, Frame -> All]An explicit ImageSize setting will prevent this behavior:
x = Graphics[Rectangle[], ImageSize -> {100, 100}];GraphicsGrid[{{x, SpanFromLeft, x}, {SpanFromAbove, SpanFromBoth, x}, {x, x, x}}, Frame -> All]Possible Issues (1)
To span across both rows and columns requires appropriate use of SpanFromBoth:
Grid[{{1, SpanFromLeft, 2}, {SpanFromAbove, SpanFromAbove, 3}, {4, 5, 6}}, Frame -> All]Grid[{{1, SpanFromLeft, 2}, {SpanFromAbove, SpanFromBoth, 3}, {4, 5, 6}}, Frame -> All]See Also
Tech Notes
Related Guides
Related Workflows
- Put Graphics in a Grid ▪
- Make a Grid of Output Data
History
Text
Wolfram Research (2007), SpanFromBoth, Wolfram Language function, https://reference.wolfram.com/language/ref/SpanFromBoth.html.
CMS
Wolfram Language. 2007. "SpanFromBoth." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SpanFromBoth.html.
APA
Wolfram Language. (2007). SpanFromBoth. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpanFromBoth.html
BibTeX
@misc{reference.wolfram_2026_spanfromboth, author="Wolfram Research", title="{SpanFromBoth}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/SpanFromBoth.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_spanfromboth, organization={Wolfram Research}, title={SpanFromBoth}, year={2007}, url={https://reference.wolfram.com/language/ref/SpanFromBoth.html}, note=[Accessed: 13-June-2026]}