Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Commands Reference

uplot provides nine commands, each tailored to a specific type of visualization. Every command reads delimiter-separated data from standard input and renders the plot to stderr by default. Commands share a common set of plot options (title, dimensions, border style, colors, margins) documented in the Options Reference, along with command-specific flags described in each subsection below.

The general invocation pattern is:

<data source> | uplot <command> [options]

or equivalently:

uplot <command> [options] < input-file

Most commands accept aliases for convenience. For example, uplot l is equivalent to uplot line, and uplot s is equivalent to uplot scatter. The full alias list is shown in each command’s section and summarized in the table below.

CommandAliasesInput shapeDescription
barbarplotlabels + valuesHorizontal bar chart
countcsingle columnCount occurrences and bar chart
histhistogramnumeric column(s)Histogram with automatic binning
linelineplot, l1-2 numeric columnsLine plot (single series)
lineslineplots, lsmulti-columnLine plot (multiple series)
scatters2+ numeric columnsScatter plot
densityd2+ numeric columnsDensity plot
boxboxplotmulti-columnBox-and-whisker plot
colorscolor, colours, colournoneShow terminal color palette

The subsections that follow document each command individually with usage syntax, options, examples, and screenshots of typical output.