WLJS LogoWLJS Notebook

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.

Examples

Plot values on a number line:

NumberLinePlot[{1, 2, 5, 7}]

Plot a region:

NumberLinePlot[x > 2, x]

Please visit the official Wolfram Language Reference for more details.

On this page