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 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.