GraphicsGroup[{g1,g2,…}]
represents a collection of graphics objects grouped together for purposes of interactive selection in a notebook.
GraphicsGroup
GraphicsGroup[{g1,g2,…}]
represents a collection of graphics objects grouped together for purposes of interactive selection in a notebook.
Details and Options
- GraphicsGroup works with both two- and three-dimensional graphics.
- A graphics group can typically be created by applying the Group item in the Graphics menu to a collection of selected graphics.
- With the default setting ContentSelectable->Automatic, double‐clicking allows you to select an individual graphics object gi within the group.
- With ContentSelectable->False, individual objects within the group cannot separately be selected, unless they are first explicitly ungrouped.
- With ContentSelectable->True, objects within the group can be selected immediately with a single click.
- GraphicsGroup always defines a level in the hierarchy of a graphics expression, so that for example
goes to the next enclosing GraphicsGroup. »
Examples
open all close allBasic Examples (1)
Scope (2)
Combine multiple primitives in groups:
a = GraphicsGroup[{Circle[], Circle[{1, 1}]}];b = GraphicsGroup[{FaceForm[], EdgeForm[StandardGray], Rectangle[{3, -1}, {5, 1}], Rectangle[{4, 0}, {6, 2}]}];Graphics[{a, b}]Define the hierarchy within graphics:
Graphics[GraphicsGroup[{Red, Disk[{0, 0}], GraphicsGroup[{Green, Disk[{1, 0}], GraphicsGroup[{Blue, Disk[{2, 0}]}]}]}]]Options (3)
ContentSelectable (3)
No individual object is selectable; the graphics group appears as one object:
Graphics[{Blue, Disk[{-3, 0}], GraphicsGroup[{Pink, Disk[], Rectangle[{2, -1}, {4, 1}]}, ContentSelectable -> False]}]Allow the individual objects in the graphics group to be selectable by a single click:
Graphics[{Blue, Disk[{-3, 0}], GraphicsGroup[{Pink, Disk[], Rectangle[{2, -1}, {4, 1}]}, ContentSelectable -> True]}]The first click selects the whole group, and subsequent clicks select individual objects:
Graphics[{Blue, Disk[{-3, 0}], GraphicsGroup[{Pink, Disk[], Rectangle[{2, -1}, {4, 1}]}, ContentSelectable -> Automatic]}]Tech Notes
Related Guides
History
Text
Wolfram Research (2007), GraphicsGroup, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphicsGroup.html.
CMS
Wolfram Language. 2007. "GraphicsGroup." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GraphicsGroup.html.
APA
Wolfram Language. (2007). GraphicsGroup. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphicsGroup.html
BibTeX
@misc{reference.wolfram_2026_graphicsgroup, author="Wolfram Research", title="{GraphicsGroup}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/GraphicsGroup.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_graphicsgroup, organization={Wolfram Research}, title={GraphicsGroup}, year={2007}, url={https://reference.wolfram.com/language/ref/GraphicsGroup.html}, note=[Accessed: 13-June-2026]}