# Labeling Three-Dimensional Graphics

*Mathematica* provides various options for labeling three-dimensional graphics. Some of these options are directly analogous to those for two-dimensional graphics, discussed in "Labeling Two-Dimensional Graphics". Others are different.

Boxed->True | draw a cuboidal bounding box around the graphics (default) |

Axes->True | draw , , and axes on the edges of the box |

Axes->{False,False,True} | draw the axis only |

FaceGrids->All | draw grid lines on the faces of the box |

PlotLabel->text | give an overall label for the plot |

Some options for labeling three-dimensional graphics.

In[1]:= |

Out[1]= |

In[2]:= |

Out[2]= |

In[3]:= |

Out[3]= |

BoxStyle->style | specify the style for the box |

AxesStyle->style | specify the style for the axes |

AxesStyle->{xstyle,ystyle,zstyle} | specify separate styles for each axis |

In[4]:= |

Out[4]= |

By setting the option Axes->True, you tell *Mathematica* to draw axes on the edges of the three-dimensional 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->Automatic | use an internal algorithm to choose where to draw all axes |

AxesEdge->{xspec,yspec,zspec} | give separate specifications for each of the , , and axes |

None | do not draw this axis |

Automatic | decide automatically where to draw this axis |

{dir_{i},dir_{j}} | specify on which of the four possible edges to draw this axis |

Specifying where to draw three-dimensional axes.

In[5]:= |

Out[5]= |

When you draw the axis on a three-dimensional 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 or to represent larger or smaller values for the and coordinates.

AxesLabel->None | give no axis labels |

AxesLabel->zlabel | put a label on the axis |

AxesLabel->{xlabel,ylabel,zlabel} | put labels on all three axes |

Axis labels in three-dimensional graphics.

In[6]:= |

Out[6]= |

Ticks->None | draw no tick marks |

Ticks->Automatic | place 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 two-dimensional graphics in "Labeling Two-Dimensional Graphics".

FaceGrids->None | draw no grid lines on faces |

FaceGrids->All | draw grid lines on all faces |

FaceGrids->{face_{1},face_{2},...} | draw grid lines on the faces specified by the |

FaceGrids->{{face_{1},{xgrid_{1},ygrid_{1}}},...} | use , to determine where and how to draw grid lines on each face |

Drawing grid lines in three dimensions.

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

In[7]:= |

Out[7]= |