LinuxCommandLibrary

gnuplot

TLDR

Start interactive mode

$ gnuplot
copy
Run script
$ gnuplot [script.gp]
copy
Quick plot
$ gnuplot -e "plot sin(x)"
copy
Persist window
$ gnuplot -p -e "plot sin(x)"
copy
Set terminal
$ gnuplot -e "set terminal png; set output 'plot.png'; plot sin(x)"
copy

SYNOPSIS

gnuplot [options] [files]

DESCRIPTION

gnuplot is a command-driven graphing utility. It creates 2D and 3D plots of functions and data, supporting many output formats for publication-quality graphics.
The tool uses a scripting language for plot customization. It supports terminals for X11, PNG, PDF, SVG, and many others. It's widely used in scientific visualization.
gnuplot produces publication-quality plots and visualizations.

PARAMETERS

FILES

Script files to run.
-e COMMAND
Execute command.
-p, --persist
Keep window after script.
-c FILE
Call script with args.
--help
Display help information.

CAVEATS

Learning curve for advanced features. Script syntax unique to gnuplot. Many terminal types available.

HISTORY

gnuplot was created in 1986 by Thomas Williams and Colin Kelley, becoming a standard tool for scientific and technical plotting.

SEE ALSO

Copied to clipboard