Aan de slagGa gratis aan de slag

Pokémon sightings

There have been reports of sightings of rare, legendary Pokémon. You have been asked to investigate! Plot the coordinates of sightings to find out where the Pokémon might be. The X and Y coordinates of the points are stored in list x and y, respectively.

Deze oefening maakt deel uit van de cursus

Cluster Analysis in Python

Cursus bekijken

Oefeninstructies

  • Import the pyplot class from matplotlib library as plt.
  • Create a scatter plot using the pyplot class.
  • Display the scatter plot created in the earlier step.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Import plotting class from matplotlib library
from matplotlib import ____ as plt

# Create a scatter plot
plt.____(x, y)

# Display the scatter plot
plt.____()
Code bewerken en uitvoeren