gnuplot -e 'set terminal dumb size 60,20; plot sin(x)'

Category: Data Science & Analysis

gnuplot -e 'set terminal dumb size 60,20; plot sin(x)'

Draw an ASCII plot of sin(x) in the terminal

The dumb terminal renders plots as ASCII characters directly in the terminal, needing no display server or image viewer. The size 60,20 sets the plot width and height in characters. This is the fastest way to eyeball a function or quick dataset from a headless shell. The output is plain text, so it also pastes into chat and bug reports.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.