Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Add Lables and Titles | Basics: Line Charts
Visualization in Python with matplotlib
Section 1. Chapter 9
single

single

bookAdd Lables and Titles

Swipe to show menu

Task

Swipe to start coding

  1. Add custom labels on the axes: 'Year' for the x-axis and 'CO2 emission per person (metric tonnes)' for the y-axis.
  2. Add title plot 'CO2 emissions (tonnes per person) in the USA and Canada'.
  3. Initialize legend and display the plot.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 9
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt