Chapter 3. The heart of the matter: the plot command

This chapter covers

  • Plotting functions and data
  • Math with gnuplot
  • Inline transformations
  • Logarithmic plots
  • Smoothing data

In gnuplot, you use the plot command to create plots of functions and data. It is, hands down, the most frequently used and most important of all gnuplot commands. In this chapter, we’ll take a systematic look at the plot command and the ways it can be used.

You’ll begin by making simple plots of functions and data. Then I’ll introduce inline transformations: gnuplot can apply arbitrary transformations to the data as it’s being plotted. You’ll learn how to use this useful feature after we take a quick detour to describe how to do math with gnuplot. Logarithmic ...

Get Gnuplot in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.