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

Veeg om het menu te tonen

book
Add Legend

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

Taak

Swipe to start coding

  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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 7

Vraag AI

expand
ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

book
Add Legend

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

Taak

Swipe to start coding

  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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 7
Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt