Course Content
Visualization in Python with matplotlib
Visualization in Python with matplotlib
Add Legend
Now let's modify the plot from the previous task with the legend!
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Everything was clear?
Add Legend
Now let's modify the plot from the previous task with the legend!
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Everything was clear?
Add Legend
Now let's modify the plot from the previous task with the legend!
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Everything was clear?
Now let's modify the plot from the previous task with the legend!
Task
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.