concept option in category gnuplot

appears as: options, option, n option, option, options, The options, The option
Gnuplot in Action

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

This chapter introduces gnuplot’s most important features: generating plots, saving them to a file, and exporting graphs to common graphics file formats. I’ll also explain briefly how to set options and how to access gnuplot’s built-in documentation. This chapter covers those commands that you’ll find yourself using almost every time you start up gnuplot. In the next couple of chapters, you’ll learn about further features for graphical analysis and how to manage data sets and files. By the end of chapter 4, you’ll know most of the commands you’ll use on a day-to-day basis.

Gnuplot has an extensive built-in, online help system (online in the sense that it’s accessible from within the gnuplot session; it has nothing to do with network connectivity to the internet). To get started, enter help at the gnuplot prompt. Alternatively, you can go directly to the reference page for a specific command or option by entering the name of the command or option as an argument to the help command. For example, to learn about the plot command, you’d use

help plot

The online help is detailed and comprehensive, so you should become familiar with it. But keep in mind that it’s a reference, not a tutorial. If you know the name of the command or option you’re looking for, it’s great. But if you want to find all relevant options for a specific task, navigating the online help can be frustrating.

2.3. Managing options with set and show

Gnuplot has relatively few commands (such as the plot, save, and load commands you’ve already encountered) but a large number of options. These options are used to control everything from the format of the decimal point to the name of the output file. More than 100 such options are available, along with countless sub-options for each. Check the entries for set and show in the gnuplot standard reference manual for the complete list.

Figure 4.2. Gnuplot treats missing values differently, depending on the value of the datafile missing option and the plot syntax. The data file is shown in listing 4.5.
Gnuplot in Action: Understanding Data with Graphs

This is an excerpt from Manning's book Gnuplot in Action: Understanding Data with Graphs.

Since gnuplot is a plotting program, it should come as no surprise that the most important gnuplot command is plot. It can be used to plot both functions (such as sin(x)) and data (typically from a file). The plot command has a variety of options and subcommands, through which we can control the appearance of the graph as well as the interpretation of the data in the file. The plot command can even perform arbitrary transformations on the data as we plot it.

First, we’ll learn how to view and manipulate options, which are gnuplot’s way of controlling details of its operation. Then we’ll summarize what we’ve learned about input file formats and show how we can use options to customize some aspects of file handling. From files, it’s only a small step to strings: gnuplot can read strings from files and make them part of a graph. We’ll see how to do this, and learn about gnuplot’s facilities to handle and manipulate strings.

4.2.1. Permissible formats and options

Several aspects of the file format can be controlled through options. For instance, we can choose additional characters to indicate comment lines in data files. In this section, we look at the fine points of input file formats: numbers and missing values, comments, and strings.