# Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# NumberLinePlot

NumberLinePlot[{v1,v2,}]
plots the values on a number line.

NumberLinePlot[pred,x]
plots a number line illustrating the region pred.

NumberLinePlot[pred,{x,xmin,xmax}]
plots the number to extend over the interval from to .

NumberLinePlot[{spec1,spec2,},]
plots several number lines.

## Details and OptionsDetails and Options

• The can be numbers, Interval objects, or lists of these.
• The predicate pred can be any logical combination of inequalities.
• The can be numbers, intervals, or symbolic predicates.
• NumberLinePlot has the same options as Graphics, with the following additions:
•  AspectRatio Automatic ratio of height to width PlotLegends None legends for the sets PlotStyle Automatic graphics directives to specify styles PlotTheme \$PlotTheme overall theme for the plot Spacings Automatic whether to plot different sets in the list pred at different heights
• The default setting of evenly spaces each above the axis.
• Spacings->{s1,s2,} places distance from the axis, distance from , etc.
• Spacings->n is equivalent to Spacings->{n,n,}
• places all of the at the same height above the axis.
• With the default setting of , the ratio is chosen based on the layout of the .

## ExamplesExamplesopen allclose all

### Basic Examples  (5)Basic Examples  (5)

Show the first 10 prime numbers on a number line:

 In[1]:=
 Out[1]=

Display an interval:

 In[1]:=
 Out[1]=

Show where an inequality is true:

 In[1]:=
 Out[1]=

Show an infinite interval:

 In[1]:=
 Out[1]=

Show several sets on a single number line:

 In[1]:=
 Out[1]=