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

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

Show the first 10 prime numbers on a number line:

In[1]:=
Click for copyable input
Out[1]=

Display an interval:

In[1]:=
Click for copyable input
Out[1]=

Show where an inequality is true:

In[1]:=
Click for copyable input
Out[1]=

Show an infinite interval:

In[1]:=
Click for copyable input
Out[1]=

Show several sets on a single number line:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)