Labeling ThreeDimensional Graphics

The Wolfram Language provides various options for labeling threedimensional graphics. Some of these options are directly analogous to those for twodimensional graphics, discussed in "Labeling Two-Dimensional Graphics". Others are different.

Boxed->Truedraw a cuboidal bounding box around the graphics (default)
Axes->Truedraw , , and axes on the edges of the box
Axes->{False,False,True}draw the axis only
FaceGrids->Alldraw grid lines on the faces of the box
PlotLabel->textgive an overall label for the plot

Some options for labeling threedimensional graphics.

The default for Graphics3D is to include a box, but no other forms of labeling:
Click for copyable input
Setting Axes->True adds , , and axes:
Click for copyable input
This adds grid lines to each face of the box:
Click for copyable input
BoxStyle->stylespecify the style for the box
AxesStyle->stylespecify the style for the axes
AxesStyle->{xstyle,ystyle,zstyle}specify separate styles for each axis

Style options.

This makes the box dashed, and draws axes that are thicker than normal:
Click for copyable input

By setting the option Axes->True, you tell the Wolfram Language to draw axes on the edges of the threedimensional box. However, for each axis, there are in principle four possible edges on which it can be drawn. The option AxesEdge allows you to specify on which edge to draw each of the axes.

AxesEdge->Automaticuse an internal algorithm to choose where to draw all axes
AxesEdge->{xspec,yspec,zspec}give separate specifications for each of the , , and axes
Nonedo not draw this axis
Automaticdecide automatically where to draw this axis
{diri,dirj}specify on which of the four possible edges to draw this axis

Specifying where to draw threedimensional axes.

This draws the on the edge with larger and coordinates, draws no axis, and chooses automatically where to draw the axis:
Click for copyable input

When you draw the axis on a threedimensional box, there are four possible edges on which the axis can be drawn. These edges are distinguished by having larger or smaller and coordinates. When you use the specification for where to draw the axis, you can set the to be +1 or -1 to represent larger or smaller values for the and coordinates.

AxesLabel->Nonegive no axis labels
AxesLabel->zlabelput a label on the axis
AxesLabel->{xlabel,ylabel,zlabel}put labels on all three axes

Axis labels in threedimensional graphics.

You can use AxesLabel to label edges of the box, without necessarily drawing scales on them:
Click for copyable input
Ticks->Nonedraw no tick marks
Ticks->Automaticplace tick marks automatically
Ticks->{xticks,yticks,zticks}specify tick marks for each axis

Settings for the Ticks option.

You can give the same kind of tick mark specifications in three dimensions as were described for twodimensional graphics in "Labeling Two-Dimensional Graphics".

FaceGrids->Nonedraw no grid lines on faces
FaceGrids->Alldraw grid lines on all faces
FaceGrids->{face1,face2,}draw grid lines on the faces specified by the facei
FaceGrids->{{face1,{xgrid1,ygrid1}},}use xgridi, ygridi to determine where and how to draw grid lines on each face

Drawing grid lines in three dimensions.

The Wolfram Language allows you to draw grid lines on the faces of the box that surrounds a threedimensional object. If you set FaceGrids->All, grid lines are drawn in gray on every face. By setting FaceGrids->{face1,face2,} you can tell the Wolfram Language to draw grid lines only on specific faces. Each face is specified by a list , where two of the must be 0, and the third one is +1 or -1. For each face, you can also explicitly tell the Wolfram Language where and how to draw the grid lines, using the same kind of specifications as you give for the GridLines option in twodimensional graphics.

This draws grid lines only on the top and bottom faces of the box:
Click for copyable input