Skip to content

Plotting with Matplotlib

Introduction

By the end of this chapter you will be able to:

  • Import Matplotlib into a Python script or Jupyter notebook

  • Construct line plots with Matplotlib

  • Use Matplotlib's object-oriented interface

  • Construct bar charts with Matplotlib

  • Add error bars to bar charts and line plots

  • Plot histograms

  • Plot contours

  • Construct 3D mesh grid plots