Chapter 4. More Plots and Customizations

In this chapter we will learn about:

  • Setting the transparency and size of axis labels
  • Adding a shadow to the chart line
  • Adding a data table to the figure
  • Using subplots
  • Customizing grids
  • Creating contour plots
  • Filling an under-plot area
  • Drawing polar plots
  • Visualizing the filesystem tree using a polar bar
  • Customizing matplotlib with style

Introduction

In this chapter, we will explore more advanced properties of the matplotlib library. We are going to introduce more options and will look at how to achieve certain visually pleasing results.

During this chapter, we will seek the solutions to some non-trivial problems with representing data when simple charts are not enough. We will try to use more than one type of graph ...

Get Python Data Visualization Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.