is an option for three-dimensional graphics functions that specifies grid lines to draw on the faces of the bounding box.
FaceGrids
is an option for three-dimensional graphics functions that specifies grid lines to draw on the faces of the bounding box.
Details
- The following settings can be given for FaceGrids:
-
None no grid lines drawn All grid lines drawn on all faces {face1,face2,…} grid lines drawn on the specified faces {{face1,{xgrid1,ygrid1}},…} details of grid lines specified - Faces are specified as {dirx,diry,dirz}, where two of the diri must be 0, and the third one must be +1 or -1.
- For example, the x‐y face with smallest z value is specified as {0,0,-1}.
- For each face, specifications {xgridi,ygridi} can be given to determine the arrangement of grid lines. These specifications have the form described in the notes for GridLines.
- FaceGridsStyle gives default styles to use for face grids. »
Examples
open all close allBasic Examples (3)
Put grids on every face of a 3D graphic:
Graphics3D[Cylinder[], Axes -> True, FaceGrids -> All]Graphics3D[Cylinder[], Axes -> True, FaceGrids -> {{0, 0, 1}, {0, 0, -1}}]Specify the overall style of face grids, using FaceGridsStyle:
Graphics3D[Cylinder[], FaceGrids -> All, FaceGridsStyle -> Directive[Orange, Dashed]]Scope (5)
FaceGrids Positions (2)
Graphics3D[Cylinder[], Axes -> True, FaceGrids -> {{1, 0, 0}}]Graphics3D[Cylinder[], Axes -> True, FaceGrids -> {{-1, 0, 0}}]On the
plane, put grid lines on
,
, and
:
Graphics3D[Cylinder[], Axes -> True, FaceGrids -> {{{0, -1, 0}, {{0}, {-1 / 3, 1 / 3}}}}]Put face grids at the specified positions, on both
and
planes:
Graphics3D[Cylinder[], Axes -> True, FaceGrids -> {{{0, -1, 0}, {{-1 / 2, 0, 1 / 2}, {-1 / 3, 1 / 3}}}, {{0, 0, 1}, {{-1 / 2, 0, 1 / 2}, {-1 / 3, 1 / 3}}}}]FaceGrids Styling (3)
Specify the style of each face grid:
Graphics3D[Cylinder[], FaceGrids -> {{{0, -1, 0}, {{{-1 / 2, Red}, {0, Green}, {1 / 2, Blue}}, {-1 / 3, {1 / 3, Directive[Thick, Dashed]}}}}}]Specify overall style of face grids, using FaceGridsStyle:
Graphics3D[Cylinder[], FaceGrids -> All, FaceGridsStyle -> Orange]Individually styled face grids can be used with FaceGridsStyle, and have higher priority:
Graphics3D[Cylinder[], FaceGrids -> {{{0, -1, 0}, {{{-1 / 2, Red}, {0, Green}, {1 / 2, Blue}}, {{-1 / 3, Thin}, {1 / 3, Dashed}}}}}, FaceGridsStyle -> Directive[Thick, Orange]]Properties & Relations (1)
See Also
Boxed Ticks GridLines Mesh FaceGridsStyle FrameTicks
Function Repository: DynamicFaceGridsBehind
Tech Notes
Related Guides
History
Introduced in 1991 (2.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1991), FaceGrids, Wolfram Language function, https://reference.wolfram.com/language/ref/FaceGrids.html (updated 2007).
CMS
Wolfram Language. 1991. "FaceGrids." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/FaceGrids.html.
APA
Wolfram Language. (1991). FaceGrids. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FaceGrids.html
BibTeX
@misc{reference.wolfram_2026_facegrids, author="Wolfram Research", title="{FaceGrids}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/FaceGrids.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_facegrids, organization={Wolfram Research}, title={FaceGrids}, year={2007}, url={https://reference.wolfram.com/language/ref/FaceGrids.html}, note=[Accessed: 13-June-2026]}