Grundlegende Diagramme mit Matplotlib

Python für Fortgeschrittene

Hugo Bowne-Anderson

Data Scientist at DataCamp

Grundlegende Diagramme mit Matplotlib

  • Visualisierung

bar chart icon

  • Datenstruktur

Code-Symbol

  • Kontrollstrukturen

  • Fallstudie

Python für Fortgeschrittene

Datenvisualisierung

  • Sehr wichtig bei der Datenanalyse

    • Daten erkunden
    • Erkenntnisse aus dem Bericht

Python für Fortgeschrittene

1 Quelle: GapMinder, Wealth and Health of Nations
Python für Fortgeschrittene

1 Quelle: GapMinder, Wealth and Health of Nations
Python für Fortgeschrittene

1 Quelle: GapMinder, Wealth and Health of Nations
Python für Fortgeschrittene

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 für Fortgeschrittene

Matplotlib

Python für Fortgeschrittene

Matplotlib

Python für Fortgeschrittene

Streudiagramm

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 für Fortgeschrittene

Streudiagramm

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 für Fortgeschrittene

Lass uns üben!

Python für Fortgeschrittene

Preparing Video For Download...