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
single

single

Ask AI

expand

Ask AI

ChatGPT

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

close

Awesome!

Completion rate improved to 2.94

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!

close

Awesome!

Completion rate improved to 2.94

Swipe to show menu

some-alt