concept plot in category gnuplot

appears as: plots, plot, plot, A plot, The plot, plots
Gnuplot in Action

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

plot "runtime" using 1:2 with lines

The mean is convenient: it’s easy to calculate, and it summarizes the entire data set in a single number. But in forming the mean, you lost a lot of information. To understand the entire data set, you have to look at it. And because you can’t understand data by looking at more than 2,000 individual finish times, this means you have to plot it.

Figure 2.3. Using explicit plot ranges: plot [][-2:2] sin(x), x, x-(x**3)/6

Appendix C. Surface and contour plots

The plot command discussed in this book creates graphs that show how one variable (y) behaves as a function of another one (x). But what if you want to show how some quantity depends on two independent variables? In other words, how can you best visualize a single “output” variable as a function of two “input” variables? That’s basically the problem cartographers have: show a quantity (the elevation above sea level or the type of ground cover) as a function of two coordinates (the position on the surface). In gnuplot, you have essentially the same options cartographers have:

Gnuplot in Action: Understanding Data with Graphs

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

plot "runtime" using 1:2 with lines
Figure 6.1. Providing minimal context to a plot using a title and axes labels. See listing 6.1.
Listing 6.1. The set of commands used to create figure 6.1
set xlabel "Cluster Size [thousands]" set ylabel "Running Time [sec]" set title "DLA Growth Program: Run Time vs Cluster Size (Double Logarithmic)" set key top left set logscale plot [0.5:40][.5:30000] "dla-log-short" u 2:6 title "data" w p, 1.2*x**2.7 notitle

This concludes our quick start, and may be all you need for now. In the rest of this chapter, we’ll discuss all the miscellaneous options that are available in case we aren’t happy with the defaults. But first I need to describe the different ways you can refer to a location on the plot.

To put all the things we’ve learned together, let’s study a more extensive example (see figure 6.6). The plot shows some (supposedly) experimental data, together with two theoretical curves that might explain the data from the experiment. The data in this example is fake, but the plot is real enough!

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.