Chapter 9. Color

This chapter covers

  • Understanding color spaces
  • Defining palettes
  • Creating colored graphs with palettes
  • Using color to represent data

We haven’t talked much about color yet in this book, so you might be wondering whether gnuplot isn’t good at handling it. Quite the opposite! Gnuplot has some clever features to handle palette-mapped color plots: plots in which colors are chosen from a continuous spectrum or palette and used to express a numeric quantity.

When we briefly discussed color before (in chapter 5), we were only interested in specifying a single color at a time: one color for the first data set, a different color for the second data set, and so forth. In this chapter, we take the opposite view: color that varies smoothly, ...

Get Gnuplot in Action: Understanding Data with Graphs now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.