- ticks๋ฅผ ์ง์ ํด์ค๋ ์ด๋ ๊ฒ value์ label์ ๋ฏธ๋ฆฌ listํ์์ผ๋ก ๋ง๋ค์ด๋๊ณ xticks(value,label)์ ๋ถ๋ฌ ์ฌ ์ ์๋ค.

- ์ฐ์ ๋์์ ๋ง์ปค์ ํฌ๊ธฐ๋ scatter() ํจ์์ s ํค์๋ ์ธ์์ ์ํด ์ ์ด๋๋ค.
์ฌ๊ธฐ์s๋ ์ค์นผ๋ผ ๋๋ ๋ฐฐ์ด์ด๊ธฐ ๋๋ฌธ์ numpy์ array๋ก ๋ถ๋ฌ์ค๊ฒ ๋๋ค.
์ด๋ numpy์ array๋ * 2 ๋ฅผ ํด์ฃผ๋ฉด double์ด ๋๋ค๋ ์ฌ์ค์ ๊ธฐ์ตํ์ !

- scatter plot (์ฐ์ ๋) option
- col : ์์ผ๋ก ๊ตฌ๋ถํ ์ ์๋ค.
- alpha = 0.8 ์ ๋ป์ ํฌ๋ช ๋๋ฅผ ์กฐ์ ํ ์ ์๋๋ฐ alpha = 1 ์ด๋ฉด ๋ถํฌ๋ช ์ด๋ค.
- plt.grid(True) ๋ฅผ ํด์ฃผ๋ฉด xlabel, ylabel ์ ๊ธฐ์ค์ผ๋ก ์ ์ ๊ทธ์ด์ฃผ์ด ๋์ฑ ์ฝ๊ฒ ๋ถํฌ๋ฅผ ํ์ธํ ์ ์๋ค.
- plt.text()๋ฅผ ํด์ฃผ๋ฉด ํด๋น ์์น์ text๋ฅผ ๋ฃ์ ์ ์๋ค.

- ์ถ์ฒ : Datacamp - Datascientist with python
https://campus.datacamp.com/courses/intermediate-python/matplotlib?ex=13
'๐ฉ๐ปโ๐ป DataScientist for Python > DataCamp' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| Intermediate Python 5 - List / Dictionary (1) | 2022.09.20 |
|---|---|
| Intermediate Python 4 - Dictionary (0) | 2022.09.20 |
| Intermediate Python 2 - Matplotlib(Ticks) (1) | 2022.09.19 |
| Intermediate Python 1 - Matplotlib (line plot, scatter plot, histogram) (0) | 2022.09.17 |
| Introduction to Python 7 - NumPy : Basic Statistics (0) | 2022.09.13 |