Course Content
Visualization in Python with matplotlib
Visualization in Python with matplotlib
Add Data to the Plot
Let's improve our plot by adding data for one more country.
Task
Display the lines for the United States and Canada emission levels on a single chart. Follow the next steps:
- Create
Figure
andAxes
objects assigned to variablesfig
,ax
respectively. - Save within the
can
variable data forCanada
. - Use the same approach as for the
usa
data for building a new line for thecan
data.
Thanks for your feedback!
Add Data to the Plot
Let's improve our plot by adding data for one more country.
Task
Display the lines for the United States and Canada emission levels on a single chart. Follow the next steps:
- Create
Figure
andAxes
objects assigned to variablesfig
,ax
respectively. - Save within the
can
variable data forCanada
. - Use the same approach as for the
usa
data for building a new line for thecan
data.
Thanks for your feedback!
Add Data to the Plot
Let's improve our plot by adding data for one more country.
Task
Display the lines for the United States and Canada emission levels on a single chart. Follow the next steps:
- Create
Figure
andAxes
objects assigned to variablesfig
,ax
respectively. - Save within the
can
variable data forCanada
. - Use the same approach as for the
usa
data for building a new line for thecan
data.
Thanks for your feedback!
Let's improve our plot by adding data for one more country.
Task
Display the lines for the United States and Canada emission levels on a single chart. Follow the next steps:
- Create
Figure
andAxes
objects assigned to variablesfig
,ax
respectively. - Save within the
can
variable data forCanada
. - Use the same approach as for the
usa
data for building a new line for thecan
data.