O'Reilly logo

matplotlib Plotting Cookbook by Alexandre Devert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required