๋ฐ์ํ
Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- BFS
- ๋ฐ์ค๊ทธ๋ํ
- ๋ค์ต์คํธ๋ผ ์๊ณ ๋ฆฌ์ฆ
- Extended Slices
- ๋ธ๋ผ์ฐ์ ์คํ
- ์ง ๊ฐ ์์ธก ๋ถ์
- Do_it
- DFS
- ๋ฐฑ์ค
- ์ ํ ํฌ ํ์ด์ฌ
- 2BPerfect
- MacOS
- ์๋ฐ
- ์ด๊ฒ์ด ์ทจ์ ์ ์ํ ์ฝ๋ฉํ ์คํธ๋ค
- matplotlib
- dacon
- ํ๋ก๊ทธ๋๋จธ์ค
- PYTHON
- ์ด์ง์ ๋ณํ
- ์ต์
- mysql
- java
- sql
- np.zeros_like
- ์์ด
- ์ฐธ์กฐ ๋ณ์
- Do it
- jdbc
- ํ์ ๋ณ์
- ํฉํ ๋ฆฌ์ผ ์ง๋ฒ
Archives
- Today
- Total
๐ฆ ๊ณต๋ฃก์ด ๋์!
Matplotlib...2(๊ทธ๋ํ ์ต์ 1) ๋ณธ๋ฌธ
- %matplotlib qt: ํ์ ์ฐฝ์์ ๊ทธ๋ํ๋ฅผ ์ถ๋ ฅํ ๋ %matplotlib inline : ๊ฒฐ๊ณผ๋ถ๋ถ ์ถ๋ ฅ
- plt.figure(1~) : 1~๋ฒ ๊ทธ๋ํ(๋ฐฑ์ง) ์์ฑ
- plt.show() : ์ด๋๊น์ง ๊ทธ๋ฆฐ ๊ฒ ๋ณด์ฌ์ฃผ๊ธฐ
- plt.clf() : ๊ทธ๋ํ๋ฅผ ๋ชจ๋ ์ง์ฐ๊ธฐ
- plt.subplot(m,n,p) : m*nํ๋ ฌ๋ก ์ด๋ค์ง ํ์ ๊ทธ๋ํ ์ค์์ p๋ฒ ์์น์ ๊ทธ๋ํ๊ฐ ๊ทธ๋ ค์ง๋๋ก ์ง์ p๋ ์ผ์ชฝ์์ ์ค๋ฅธ์ชฝ์ผ๋ก ๊ทธ๋ฆฌ๊ณ ์์์ ์๋๋ก ํ๋ ฌ์ ์์น๋ฅผ ์ง์
-
211 221 222 321 322 212 223 224 323 324 325 326โ
- ์ฐธ๊ณ ์์
-
plt.subplot(2,2,1) plt.plot(x,y1) plt.subplot(2,2,2) plt.plot(x,y2) plt.subplot(2,2,3) plt.plot(x,y3) plt.show()
- ๊ทธ๋ํ
- ์ถ๋ ฅ๋ฒ์ ์ง์ ํ๊ธฐ
- xlimit
- plt.xlim(min. max)
- ylim
- plt.ylim(min, max)
- xlimit
- ์ค์
- ์ถ ์ ๋ชฉ
- plt.xlabel('X-axis')
- plt.ylabel('Y-axis')
- ๊ทธ๋ํ ์ ๋ชฉ
- plt.title('Graph title')
- ๊ฒฉ์ ์ ๋ชฉ
- plt.grid(True)
- ๋ฒ๋ก ์ ๋ชฉ
- ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ ์ต์
์ค์ ๋ label=’’ ๋ก ๋ฏธ๋ฆฌ ์ค์ ๊ฐ๋ฅ
- ์์
-
plt.plot(์ฑ๋ณ์ ์ค๋ฑ๊ธ๋ณ์์กด์จ.loc['female'], label='female') plt.plot(์ฑ๋ณ์ ์ค๋ฑ๊ธ๋ณ์์กด์จ.loc['male'], label='male')
- plt.legend(['data1',~~],loc='์์น')
- legend() ๋ฅผ ์คํํ๋ฉด ๋ฒ๋ก๊ฐ ์์ฑ๋จ
-
best 0 upper right 1 upper left 2 lower left 3 lower right 4 right 5 center left 6 center right 7 lower center 8 upper center 9 center 10
- ๊ฐ ํ์
- plt.text(x,y,name)
- plt.text(x,y,name)
- ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ ์ต์
์ค์ ๋ label=’’ ๋ก ๋ฏธ๋ฆฌ ์ค์ ๊ฐ๋ฅ
- ์ถ ์ ๋ชฉ
- ์ถ๋ ฅ๋ฒ์ ์ง์ ํ๊ธฐ
๋ฐ์ํ
'Development > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ex(์ฒจ๋, ๋ถ์ฐ,๋ฐ์ค) (0) | 2022.02.07 |
---|---|
Matplotlib...3(๊ทธ๋ํ ์ต์ 2) (0) | 2022.02.06 |
Matplotlib...1(๊ทธ๋ํ ํ์) (0) | 2022.02.04 |
2BPerfect...18 (0) | 2022.02.03 |
2BPerfect...17 (0) | 2022.02.02 |
Comments