Chapter 3. Applying Colors and Styles

This chapter contains the following recipes:

  • Coloring your curves
  • Styling your curves
  • Applying transparency [new]
  • Plotting points with curves
  • Changing the point style
  • Changing the plot size
  • Positioning graphs on the page [new]
  • Plotting with objects [new]

Introduction

This chapter is mostly concerned with ways to tell the different curves apart when multiple functions and/or datasets are plotted on a single graph. The three chief methods of accomplishing this are to plot the curves with different colors, different styles (thin, thick, dashed, dotted, and so on), or by using different types of symbols (or what gnuplot calls points). We saw examples of different line styles in the preceding chapters, and gnuplot will automatically ...

Get gnuplot Cookbook 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.