กราฟพื้นฐานด้วย Matplotlib

Python ระดับกลาง

Hugo Bowne-Anderson

Data Scientist at DataCamp

กราฟพื้นฐานด้วย Matplotlib

  • การแสดงภาพข้อมูล

ไอคอนแผนภูมิแท่ง

  • โครงสร้างข้อมูล

ไอคอนโค้ด

  • โครงสร้างควบคุม

  • กรณีศึกษา

Python ระดับกลาง

การแสดงภาพข้อมูล

  • สำคัญมากในการวิเคราะห์ข้อมูล

    • สำรวจข้อมูล
    • นำเสนอข้อค้นพบ

Python ระดับกลาง

1 ที่มา: GapMinder, Wealth and Health of Nations
Python ระดับกลาง

1 ที่มา: GapMinder, Wealth and Health of Nations
Python ระดับกลาง

1 ที่มา: GapMinder, Wealth and Health of Nations
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()

Python ระดับกลาง

Matplotlib

Python ระดับกลาง

Matplotlib

Python ระดับกลาง

Scatter plot

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 ระดับกลาง

Scatter plot

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 ระดับกลาง

มาฝึกกันเถอะ!

Python ระดับกลาง

Preparing Video For Download...