concept command file in category gnuplot

appears as: Commd files, command file, commd file
Gnuplot in Action

This is an excerpt from Manning's book Gnuplot in Action.

Command files are plain text files, usually containing exactly one command per line. Several commands can be combined on a single line by separating them with a semicolon (;)—this also works at the interactive command line. The hash mark (#) is interpreted as a comment character: the rest of the line following a hash mark is ignored. The hash mark isn’t interpreted as a comment character when it appears inside quoted strings.

The recommended file extension for gnuplot command files is .gp, but you may also find people using .plt instead. Because command files are plain text files, they can be edited using a regular text editor. It’s sometimes useful to author them manually and load them into gnuplot (see section 12.2 for further discussion of that point), and they’re also used for batch operations (chapter 11) and configurations (chapter 12).

  • Capture commands in a command file, and run it using either load or call (see section 11.2.1).