Základní grafy v Matplotlib

Intermediate Python

Hugo Bowne-Anderson

Data Scientist at DataCamp

Základní grafy v Matplotlib

  • Vizualizace

ikona sloupcového grafu

  • Datové struktury

ikona kódu

  • Řídicí struktury

  • Případová studie

Intermediate Python

Vizualizace dat

  • Velmi důležité v datové analýze

    • Průzkum dat
    • Prezentace zjištění

Intermediate Python

1 Zdroj: GapMinder, Wealth and Health of Nations
Intermediate Python

1 Zdroj: GapMinder, Wealth and Health of Nations
Intermediate Python

1 Zdroj: GapMinder, Wealth and Health of Nations
Intermediate Python

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()

Intermediate Python

Matplotlib

Intermediate Python

Matplotlib

Intermediate Python

Bodový graf

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()
Intermediate Python

Bodový graf

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()

Intermediate Python

Pojďme si procvičit!

Intermediate Python

Preparing Video For Download...