{
    "mode": "man",
    "parameter": "GNUPLOT",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/GNUPLOT/1/json",
    "generated": "2026-07-05T16:04:24Z",
    "synopsis": "gnuplot [X11 options] [options] [file ...]",
    "sections": {
        "NAME": {
            "content": "gnuplot - an interactive plotting program\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "gnuplot [X11 options] [options] [file ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Gnuplot is a command-driven interactive plotting program.\n\nIf  file names are given on the command line, gnuplot loads and executes each file in the or‐\nder specified, and exits after the last file is processed.  If no files  are  given,  gnuplot\nprompts for interactive commands.\n\nHere are some of its features:\n\nPlots  any  number  of functions, built up of C operators, C math library functions, and some\nthings C doesn't have like , sgn(), etc.\n\nUser-defined constants and functions.\n\nAll computations performed in the complex domain.  Just the real part is plotted by  default,\nbut functions like imag() and abs() and arg() are available to override this.\n\nMany  presentation styles for plotting user data from files, including surface-fitting, error\nbars, boxplots, histograms, heat maps, and simple manipulation of image data.   There  is  an\non-line demo collection at\nhttp://gnuplot.info/demo\n\nNonlinear least-squares fitting.\n\n2D and 3D plots with mouse-controlled zooming, rotation, and hypertext.\n\nShell escapes and command line substitution.\n\nLoad and save capability.\n\nSupport for a huge variety of output devices and file formats.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-p, --persist",
                    "content": "",
                    "flag": "-p",
                    "long": "--persist"
                },
                {
                    "name": "-c",
                    "content": "",
                    "flag": "-c"
                },
                {
                    "name": "mainder of the command line as arguments",
                    "content": ""
                },
                {
                    "name": "-d, --default",
                    "content": "",
                    "flag": "-d",
                    "long": "--default"
                },
                {
                    "name": "-e",
                    "content": "",
                    "flag": "-e"
                },
                {
                    "name": "-s, --slow",
                    "content": "",
                    "flag": "-s",
                    "long": "--slow"
                },
                {
                    "name": "-h, --help",
                    "content": "",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                }
            ]
        },
        "X11 OPTIONS": {
            "content": "For terminal type x11, gnuplot accepts the standard X Toolkit options and resources  such  as\ngeometry,  font,  and  background. See the X(1) man page for a description of common options.\nFor additional X options specific to gnuplot, type help x11  on  the  gnuplot  command  line.\nThese options have no effect on other terminal types.\n",
            "subsections": []
        },
        "ENVIRONMENT": {
            "content": "A  number  of  shell  environment variables are understood by gnuplot.  None of these are re‐\nquired.\n\nGNUTERM\nThe name of the terminal type to be used by default.  This can be  overridden  by  the\ngnuplotrc  or .gnuplot start-up files and, of course, by later explicit \"set terminal\"\ncommands.\n\nGNUHELP\nThe pathname of the HELP file (gnuplot.gih).\n\nHOME   The name of a directory to search for a .gnuplot file.\n\nPAGER  An output filter for help messages.\n\nSHELL  The program used for the \"shell\" command.\n\nFITSCRIPT\nSpecifies a gnuplot command to be executed when a fit is interrupted---see \"help fit\".\n\nFITLOG\nThe name of the logfile maintained by fit.\n\nGNUPLOTLIB\nAdditional search directories for data and command files. The variable may  contain  a\nsingle directory name, or a list of directories separated by ':'. The contents of GNU‐\nPLOTLIB are appended to the \"loadpath\" variable, but not saved with  the  \"save\"  and\n\"save set\" commands.\n\nGDFONTPATH\nSeveral gnuplot terminal drivers access TrueType fonts via the gd library.  This vari‐\nable gives the font search path for these drivers.\n\nGNUPLOTDEFAULTGDFONT\nThe default font for the terminal drivers that access TrueType fonts via  the  gd  li‐\nbrary.\n\nGNUPLOTFONTPATH\nThe  font  search  path used by the postscript terminal. The format is the same as for\nGNUPLOTLIB. The contents of GNUPLOTFONTPATH are appended to the \"fontpath\" variable,\nbut not saved with the \"save\" and \"save set\" commands.\n\nGNUPLOTPSDIR\nUsed  by  the  postscript  driver  to locate external prologue files. Depending on the\nbuild process, gnuplot contains either a builtin copy of those files or simply  a  de‐\nfault  hardcoded  path.  Use this variable to test the postscript terminal with custom\nprologue files. See \"help postscript prologue\".\n",
            "subsections": []
        },
        "FILES": {
            "content": "gnuplotrc\nWhen gnuplot is run, it first looks for a system-wide initialization file  named  gnu‐\nplotrc.  The standard location of this file expected by the program is reported by the\n\"show loadpath\" command.\n\n.gnuplot\nAfter loading the system-wide initialization file, if any, Gnuplot looks for a private\ninitialization file in the HOME directory.  It may contain any legal gnuplot commands,\nbut typically they are limited to setting the preferred terminal and  line  types  and\ndefining frequently-used functions or variables.\n\nfit.log\nThe default name of the logfile output by the \"fit\" command.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Original  authors:  Thomas Williams and Colin Kelley.  Starting with gnuplot version 3.8, the\nproject source is cooperatively maintained on SourceForge by a large number of contributors.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please report bugs using the project bug tracker on SourceForge.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "See the printed manual or the on-line help for details on  specific  commands.   Project  web\nsite at http://gnuplot.info\n\n\n\n4th Berkeley Distribution                   15 March 2019                                 GNUPLOT(1)",
            "subsections": []
        }
    },
    "summary": "gnuplot - an interactive plotting program",
    "flags": [
        {
            "flag": "-p",
            "long": "--persist",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-d",
            "long": "--default",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-e",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-s",
            "long": "--slow",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "A graph plotter that outputs in several formats.",
        "examples": [
            {
                "description": "Start the interactive graph plotting shell",
                "command": "gnuplot"
            },
            {
                "description": "Plot the graph for the specified graph definition file",
                "command": "gnuplot {{path/to/definition.plt}}"
            },
            {
                "description": "Set the output format by executing a command before loading the definition file",
                "command": "gnuplot -e \"{{set output \"path/to/file.png\" size 1024,768}}\" {{path/to/definition.plt}}"
            },
            {
                "description": "Persist the graph plot preview window after gnuplot exits",
                "command": "gnuplot {{-p|--persist}} {{path/to/definition.plt}}"
            }
        ]
    }
}