concept explanation in category gnuplot

appears as: explations, n explanation, explation, explations, The explation, explation
Gnuplot in Action

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

The explanation is a bit of text that assigns a meaning to each line sample or symbol type included in the key. The string for the explanation can come from one of two places: the plot command or the data file. Let’s look at both methods.

Rather than use a global directive, you can tell gnuplot to take the explanation from the data file within the plot command. Doing so lets you modify the behavior on a case-by-case basis:

Using title columnhead as part of the plot command instructs gnuplot to take the explanation for that column from the header entry for the same column. If you want more control (for instance, because you want to specify a different column, or you’re applying an inline transformation that combines multiple columns), you can use the columnheader() function.[4] The argument to columnheader should evaluate to an integer, which is interpreted as a column number; the function returns the contents of the first non-comment line in this column as a string. This string can either be supplied to the title keyword in the plot directly or be part of a string expression. The next code snippet shows all these variants:

Gnuplot in Action: Understanding Data with Graphs

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

The explanation is a bit of text that assigns a meaning to each line sample or symbol type included in the key. The string for the explanation can come from one of two places. The usual (and until recently, the only) source for the explanatory text is the plot command itself. But the most recent versions of gnuplot added the possibility to embed the explanation together with the data in the input file. Let’s take a look at both methods.

Listing 11.6. Combining gnuplot and LaTeX using the epslatex terminal
set label 1 '$\phi(x) = \frac{1}{\sqrt{2 \pi}} e^{-\frac{1}{2} x^2}$' at 1.2,0.25 set label 2 '$\Phi(x) = \int_{-\infty}^x \phi(t) dt$' at 1.2,0.8 set key top left Left # Interchange line sample and explanation unset xtics set xtics ( '$-\pi/2$' -pi/2, '$0$' 0, '$\pi/2$' pi/2 ) plot [-3:3] exp(-0.5*x**2) /sqrt(2*pi) t '$\phi(x)$', norm(x) t '$\Phi(x)$' set terminal epslatex set o "epslatex.tex" # Name of output LaTeX file with extension! replot