O'Reilly logo

Matplotlib for Python Developers by Sandro Tosi

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 4. Advanced Matplotlib

We are about to explore some advanced aspects of Matplotlib. The topics that we are going to cover in detail are:

  • Matplotlib's object-oriented interface
  • Subplots and multiple figures
  • Additional and shared axes
  • Logarithmic scaled axes
  • Date plotting with ticks formatting and locators
  • Text properties, fonts, LaTeX typewriting
  • Contour plots and image plotting

The basis for all of these topics is the object-oriented interface, so we will learn about that first.

Object-oriented versus MATLAB styles

So far in this book, we have seen a lot of examples, and in all of them we used the matplotlib.pyplot module to create and manipulate the plots, but this is not the only way to make use of the Matplotlib plotting power.

There are three ...

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