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
Swipe to begin your solution
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 7
Add Legend
Now let's modify the plot from the previous task with the legend!
Task
Swipe to begin your solution
- Add
label
parameters to both plots. Use'United States'
aslabel
for theusa
data and'Canada'
for thecan
data. - Add a legend to the plot.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 7
Switch to desktop for real-world practiceContinue from where you are using one of the options below