Eenvoudige grafieken met Matplotlib

Python voor gemiddeld niveau

Hugo Bowne-Anderson

Data Scientist at DataCamp

Eenvoudige grafieken met Matplotlib

  • Visualisatie

staafdiagramicoontje

  • Datastructuur

code-icoontje

  • Controlestructuren

  • Casestudy

Python voor gemiddeld niveau

Datavisualisatie

  • Heel belangrijk bij data-analyse

    • Gegevens verkennen
    • Inzichten rapporteren

Python voor gemiddeld niveau

1 Bron: GapMinder, Wealth and Health of Nations
Python voor gemiddeld niveau

1 Bron: GapMinder, Wealth and Health of Nations
Python voor gemiddeld niveau

1 Bron: GapMinder, Wealth and Health of Nations
Python voor gemiddeld niveau

Matplotlib

import matplotlib.pyplot as plt

year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()

Python voor gemiddeld niveau

Matplotlib

Python voor gemiddeld niveau

Matplotlib

Python voor gemiddeld niveau

Spreidingsdiagram

import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()
Python voor gemiddeld niveau

Spreidingsdiagram

import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.scatter(year, pop)
plt.show()

Python voor gemiddeld niveau

Laten we oefenen!

Python voor gemiddeld niveau

Preparing Video For Download...