Getting Started with Matplotlib

Now that we are familiar with the capabilities and functionalities of Matplotlib and all geared up with the Python environment, let's go straight ahead and create our first plots.

In this chapter, we will learn how to:

  • Draw basic line and scatter plots
  • Overlay multiple data series on the same plots
  • Adjust grids, axes, and labels
  • Add a title and legend
  • Save created plots as separate files
  • Configure Matplotlib global settings

Get Matplotlib for Python Developers 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.