All courses
· intermediate

Charts with Matplotlib and Seaborn

The library, not the design. What a figure and an axes actually are, why the same plot can be written two completely different ways, where seaborn saves you work, and how to get a chart out at a size somebody can read.

Pathaxis · Original content

Written in house, from the work rather than from a syllabus. Every example is one we would use ourselves, and every quiz question explains why its answer is right.

83 min 6 lessons 15 quiz questionsStart course

What you’ll learn

  • Explain the difference between a figure and an axes, and why it matters
  • Choose between the pyplot interface and the object-oriented API deliberately
  • Plot directly from a DataFrame and know when to drop to matplotlib
  • Use seaborn for the statistical plots it is genuinely better at
  • Set scales, ticks and labels so a chart is readable without explanation
  • Save a figure at a size and resolution that survives a report

Before you start

  • · Comfortable with pandas DataFrames
  • · Some exposure to charts, from any tool

Syllabus

01

The objects

Figure, axes, and the two ways to talk to them.

02

Plotting real data

From a DataFrame, and where seaborn helps.