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 Options

Examples

open allclose all

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

Scope  (8)

Options  (15)

Applications  (5)

Properties & Relations  (2)

See Also

ListPlot  RegionPlot  Graphics  DateListPlot  Interval  FunctionDomain  FunctionRange  TimelinePlot

Introduced in 2014
(10.0)