Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Add Legend | Basics: Line Charts
Visualization in Python with matplotlib

Add LegendAdd Legend

Now let's modify the plot from the previous task with the legend!

Tarea

  1. Add label parameters to both plots. Use 'United States' as label for the usa data and 'Canada' for the can data.
  2. Add a legend to the plot.

¿Todo estuvo claro?

Sección 1. Capítulo 7
toggle bottom row
course content

Contenido del Curso

Visualization in Python with matplotlib

Add LegendAdd Legend

Now let's modify the plot from the previous task with the legend!

Tarea

  1. Add label parameters to both plots. Use 'United States' as label for the usa data and 'Canada' for the can data.
  2. Add a legend to the plot.

¿Todo estuvo claro?

Sección 1. Capítulo 7
toggle bottom row
some-alt