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 3. Decorate Graphs with Plot Styles and Types

So far, we have only seen a glimpse of Matplotlib's potential, and we want to see more—that's exactly what this chapter aims at.

We saw plain lines, but Matplotlib can do a lot more. In this chapter, we will explore:

  • Line style customization—changing how the lines are drawn
  • Point style customization—changing how we plot points on the graph
  • Axes tick customization—changing how we draw ticks on the axes
  • The several plots types available in Matplotlib such as histograms, bars, error bars, pie charts, scatter plots, and so on
  • Polar charts, in case we need to plot relationships better expressed in terms of angles and radii
  • Inserting textual information in our plots

Let's start with line and marker customizations. ...

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