Conteúdo do Curso
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.
Swipe to show code editor
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.
Obrigado pelo seu feedback!
Add Data to the Plot
Let's improve our plot by adding data for one more country.
Swipe to show code editor
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.
Obrigado pelo seu feedback!