GNUPLOT(1)
๐ GNUPLOT(1) โ like, the plotting program manual, bestie โจ
okay so quick meta moment: this is from the General Commands Manual, section 1, and the whole vibe is GNUPLOT(1). Buckle up, we're plotting. ๐๐
๐ธ NAME ๐ธ
gnuplot โ an interactive plotting program. that's it. that's the whole name section. iconic brevity honestly ๐
โจ SYNOPSIS โจ
gnuplot [X11 options] [options] [file ...]
๐ฆ DESCRIPTION ๐ฆ
Gnuplot is a command-driven interactive plotting program. like, you talk to it, it draws stuff. main character energy fr fr ๐
If you give it file names on the command line, gnuplot loads and executes each file in the order specified, and then it exits after the last file is processed. If you give it no files at all? it just prompts you for interactive commands. cozy. ๐ซถ
Here are some of its features โ and bestie, there are so many:
- Plots any number of functions, built up of C operators, C math library functions, and some things C doesn't even have, like
**,sgn(), etc. ๐งฎโจ - User-defined constants and functions. make it yours, no cap.
- All computations performed in the complex domain. Just the real part gets plotted by default, but functions like
imag()andabs()andarg()are available to override that. complex numbers ate and left no crumbs ๐ - Many presentation styles for plotting user data from files โ including surface-fitting, error bars, boxplots, histograms, heat maps, and simple manipulation of image data. There's an on-line demo collection at
http://www.gnuplot.info/demo๐ - Nonlinear least-squares fitting. math girlies rise ๐ฅ
- 2D and 3D plots with mouse-controlled zooming, rotation, and hypertext. you can literally grab it with your mouse, obsessed.
- Shell escapes and command line substitution. very useful, lowkey underrated.
- Load and save capability. save your whole setup, queen behavior ๐
- Support for a huge variety of output devices and file formats. so many. a whole buffet. ๐
๐ OPTIONS ๐
-p,--persistโ lets plot windows survive after the main gnuplot program exits. they simply refuse to leave the party ๐ญ๐-c scriptname ARG1 ARG2 ...โ load script using gnuplot's"call"mechanism and pass it the remainder of the command line as arguments. so-cwalks in, hands over the rest of the line, and dips.-d,--default-settingsโ do not read fromgnuplotrc,~/.gnuplot, and$XDG_CONFIG_HOME/gnuplot/gnuplotrcon entry. no startup files, no baggage, fresh start energy โจ-e "command list"โ executes the requested commands before loading the next input file.-s,--slowโ wait for slow font initialization rather than continuing with an error. patience is a virtue, bestie ๐งโโ๏ธ-h,--helpโ print summary of usage. when in doubt, ask for help ๐ซถ-V,--versionโ show current version. okay but which era are we in โญ
๐ X11 OPTIONS ๐
For terminal type x11, gnuplot accepts the standard X Toolkit options and resources such as geometry, font, and background. Peep the X(1) man page for a description of common options. ๐
For additional X options specific to gnuplot, type help x11 on the gnuplot command line. iykyk ๐
heads up: these options have no effect on other terminal types. x11 only, bestie. don't come for the others ๐ซ
๐ ENVIRONMENT ๐
A number of shell environment variables are understood by gnuplot. None of these are required. zero pressure, they're just there if you want them ๐ซถ
GNUTERMโ the name of the terminal type to be used by default. This can be overridden by thegnuplotrc,.gnuplot, or$XDG_CONFIG_HOME/gnuplot/gnuplotrcstart-up files and, of course, by later explicit"set terminal"commands. layers, bestie. layers. ๐GNUHELPโ the pathname of the HELP file (gnuplot.gih).HOMEโ the name of a directory to search for a.gnuplotfile.PAGERโ an output filter for help messages. it pages your help, that's the whole job.SHELLโ the program used for the"shell"command.FIT_SCRIPTโ specifies a gnuplot command to be executed when a fit is interruptedโsee"help fit".FIT_LOGโ the name of the logfile maintained byfit.GNUPLOT_LIBโ additional search directories for data and command files. The variable may contain a single directory name, or a list of directories separated by':'. The contents ofGNUPLOT_LIBare appended to the"loadpath"variable, but not saved with the"save"and"save set"commands. sneaky but documented ๐GDFONTPATHโ several gnuplot terminal drivers access TrueType fonts via the gd library. This variable gives the font search path for these drivers.GNUPLOT_DEFAULT_GDFONTโ the default font for the terminal drivers that access TrueType fonts via the gd library.GNUPLOT_FONTPATHโ the font search path used by thepostscriptterminal. The format is the same as forGNUPLOT_LIB. The contents ofGNUPLOT_FONTPATHare appended to the"fontpath"variable, but not saved with the"save"and"save set"commands. same energy, different variable ๐ธGNUPLOT_PS_DIRโ used by thepostscriptdriver to locate external prologue files. Depending on the build process, gnuplot contains either a builtin copy of those files or simply a default hardcoded path. Use this variable to test thepostscriptterminal with custom prologue files. See"help postscript prologue". very niche, very valid โญ
๐ง FILES ๐ง
gnuplotrcโ When gnuplot is run, it first looks for a system-wide initialization file namedgnuplotrc. The standard location of this file expected by the program is reported by the"show loadpath"command. ask the program where it lives, it'll tell you ๐ซถ.gnuplotโ After loading the system-wide initialization file, if any, Gnuplot looks for a private initialization file in theHOMEdirectory. It may contain any legal gnuplot commands, but typically they are limited to setting the preferred terminal and line types and defining frequently-used functions or variables. your personal little corner ๐$XDG_CONFIG_HOME/gnuplot/gnuplotrcโ After loading the other initialization files, Gnuplot will check if there is a file namedgnuplotrcin thegnuplotsubdirectory in$XDG_CONFIG_HOME(default~/.config). The same restrictions as for.gnuplotapply. it's the third one in the rotation, show it some love ๐fit.logโ The default name of the logfile output by the"fit"command.
๐ AUTHORS ๐
Original authors: Thomas Williams and Colin Kelley. Starting with gnuplot version 3.8, the project source is cooperatively maintained on SourceForge by a large number of contributors. legends, all of them. founders โ community, the glow-up arc ๐ซถโจ
๐ BUGS ๐
Please report bugs using the project bug tracker on SourceForge. don't suffer in silence bestie, file the ticket ๐ญ
๐ฅ SEE ALSO ๐ฅ
See the printed manual or the on-line help for details on specific commands. Project web site at http://www.gnuplot.info ๐
okay and that's the whole page!! mwah ๐ this little beauty came from the 4th Berkeley Distribution, dated February 2020, and yes it's still GNUPLOT(1) โ go plot something iconic ๐๐โญ
๐ฆ where this page comes from
- epel 10: gnuplot-common 6.0.4-2.el10_3 ยท gnuplot and MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms