Chapter 1. First Steps

In this chapter, we will cover:

  • Installing matplotlib
  • Plotting one curve
  • Using NumPy
  • Plotting multiple curves
  • Plotting curves from file data
  • Plotting points
  • Plotting bar charts
  • Plotting multiple bar charts
  • Plotting stacked bar charts
  • Plotting back-to-back bar charts
  • Plotting pie charts
  • Plotting histograms
  • Plotting boxplots
  • Plotting triangulations

Introduction

matplotlib makes scientific plotting very straightforward. matplotlib is not the first attempt at making the plotting of graphs easy. What matplotlib brings is a modern solution to the balance between ease of use and power. matplotlib is a module for Python, a programming language. In this chapter, we will provide a quick overview of what using matplotlib feels like. Minimalistic recipes ...

Get matplotlib Plotting 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.