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 and pie charts with Matplotlib

  • Add error bars to bar charts and line plots

  • Plot histograms

  • Make box plots and violin plots

  • Plot contours

  • Create quiver plots and stream plots

  • Construct 3D mesh grid plots