๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป DataScientist for Python/DataCamp

Intermediate Python 1 - Matplotlib (line plot, scatter plot, histogram)

- line plot

- scatter plot

- histogram

bins =3 ์œผ๋กœ ์„ค์ •ํ•ด์ฃผ๋ฉด ํ•ด๋‹น๋ฒ”์œ„๋ฅผ 3๊ฐœ์˜ bar๋กœ ๋‚˜๋‰˜๊ฒŒ ๋œ๋‹ค.

- ์—ฐ์Šต

- line plot

- scatter plot

plt.xscale() ๊ณผ ๊ฐ™์€ ํ˜•์‹์œผ๋กœ scale์„ ์ค„ ์ˆ˜ ์žˆ๋‹ค.

- histogram

bins = 5 ๋ณด๋‹ค bins = 20 ์œผ๋กœ ์„ค์ •ํ•˜๋ฉด bar plot ์ด ๋” ์ด˜์ด˜ํ•ด์ง€๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

 

์Šฌ๋ผ์ด๋“œ ์ถœ์ฒ˜ : Datacamp - Datascientist with python

https://campus.datacamp.com/courses/intermediate-python/matplotlib?ex=13