This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Labeling Two-Dimensional Graphics

Axes->Truegive a pair of axes
GridLines->Automaticdraw grid lines on the plot
Frame->Trueput axes on a frame around the plot
PlotLabel->"text"give an overall label for the plot

Ways to label two-dimensional plots.

Here is a plot, using the default Axes->True.
Click for copyable input
Setting Frame->True generates a frame with axes, and removes tick marks from the ordinary axes.
Click for copyable input
This includes grid lines, which are shown in light gray.
Click for copyable input
Axes->Falsedraw no axes
Axes->Truedraw both x and y axes
Axes->{False,True}draw a y axis but no x axis
AxesOrigin->Automaticchoose the crossing point for the axes automatically
AxesOrigin->{x,y}specify the crossing point
AxesStyle->stylespecify the style for the axes
AxesStyle->{xstyle,ystyle}specify individual styles for the axes
AxesLabel->Nonegive no axis labels
AxesLabel->ylabelput a label on the y axis
AxesLabel->{xlabel,ylabel}put labels on both the x and y axes

Options for axes.

This makes the axes cross at the point {5, 0}, and puts a label on each axis.
Click for copyable input
Ticks->Nonedraw no tick marks
Ticks->Automaticplace tick marks automatically
Ticks->{xticks,yticks}specify tick marks for each axis

Settings for the Ticks option.

With the default setting Ticks->Automatic, Mathematica creates a certain number of major and minor tick marks, and places them on axes at positions which yield the minimum number of decimal digits in the tick labels. In some cases, however, you may want to specify the positions and properties of tick marks explicitly. You will need to do this, for example, if you want to have tick marks at multiples of , or if you want to put a nonlinear scale on an axis.
Nonedraw no tick marks
Automaticplace tick marks automatically
{x1,x2,...}draw tick marks at the specified positions
{{x1,label1},{x2,label2},...}draw tick marks with the specified labels
{{x1,label1,len1},...}draw tick marks with the specified scaled lengths
{{x1,label1,{plen1,mlen1}},...}draw tick marks with the specified lengths in the positive and negative directions
{{x1,label1,len1,style1},...}draw tick marks with the specified styles
funca function to be applied to xmin, xmax to get the tick mark option

Tick mark options for each axis.

This gives tick marks at specified positions on the x axis, and chooses the tick marks automatically on the y axis.
Click for copyable input
This adds tick marks with no labels at multiples of /2.
Click for copyable input
Particularly when you want to create complicated tick mark specifications, it is often convenient to define a "tick mark function" which creates the appropriate tick mark specification given the minimum and maximum values on a particular axis.
This defines a function which gives a list of tick mark positions with a spacing of 1.
Click for copyable input
This uses the units function to specify tick marks for the x axis.
Click for copyable input
Frame->Falsedraw no frame
Frame->Truedraw a frame around the plot
FrameStyle->stylespecify a style for the frame
FrameStyle->{{left,right},{bottom,top}}specify styles for each edge of the frame
FrameLabel->Nonegive no frame labels
FrameLabel->{{left,right},{bottom,top}}put labels on edges of the frame
RotateLabel->Falsedo not rotate text in labels
FrameTicks->Nonedraw no tick marks on frame edges
FrameTicks->Automaticposition tick marks automatically
FrameTicks->{{left,right},{bottom,top}}specify tick marks for frame edges

Options for frame axes.

The Axes option allows you to draw a single pair of axes in a plot. Sometimes, however, you may instead want to show the scales for a plot on a frame, typically drawn around the whole plot. The option Frame allows you effectively to draw four axes, corresponding to the four edges of the frame around a plot. These four axes are ordered clockwise, starting from the one at the bottom.
This draws frame axes, and labels each of them.
Click for copyable input
GridLines->Nonedraw no grid lines
GridLines->Automaticposition grid lines automatically
GridLines->{xgrid,ygrid}specify grid lines in analogy with tick marks

Options for grid lines.

Grid lines in Mathematica work very much like tick marks. As with tick marks, you can specify explicit positions for grid lines. There is no label or length to specify for grid lines. However, you can specify a style.
This generates x but not y grid lines.
Click for copyable input