# Wolfram Language & System 11.0 (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 vi 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 xmin to xmax.

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

## Details and OptionsDetails and Options

• The vi can be numbers, Interval objects, or lists of these.
• The predicate pred can be any logical combination of inequalities.
• The speci 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 speci above the axis.
• Spacings->{s1,s2,} places spec1 distance s1 from the axis, spec2 distance s2 from spec1, etc.
• Spacings->n is equivalent to Spacings->{n,n,}
• places all of the speci at the same height above the axis.
• With the default setting of , the ratio is chosen based on the layout of the speci.

## 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]=