Chapter 5. Matplotlib Charts

In this chapter, we will create beautiful charts using Python 3 with the Matplotlib module.

  • Creating beautiful charts using Matplotlib
  • Matplotlib – downloading modules using pip
  • Matplotlib – downloading modules with whl extensions
  • Creating our first chart
  • Placing labels on charts
  • How to give the chart a legend
  • Scaling charts
  • Adjusting the scale of charts dynamically

Introduction

In this chapter, we will create beautiful charts that visually represent data. Depending on the format of the data source, we can plot one or several columns of data in the same chart.

We will be using the Python Matplotlib module to create our charts.

In order to create these graphical charts, we need to download additional Python modules and there are ...

Get Python GUI Programming Cookbook 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.