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

Swipe to show menu

book
Add Lables and Titles

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

Ask AI

expand
ChatGPT

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

book
Add Lables and Titles

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
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt