๋ฐ์ํ
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 | 31 |
Tags
- Extended Slices
- ํฉํ ๋ฆฌ์ผ ์ง๋ฒ
- ๋ค์ต์คํธ๋ผ ์๊ณ ๋ฆฌ์ฆ
- sql
- matplotlib
- ๋ฐฑ์ค
- BFS
- ํ์ ๋ณ์
- np.zeros_like
- ์ต์
- PYTHON
- DFS
- mysql
- ์ด์ง์ ๋ณํ
- ์ด๊ฒ์ด ์ทจ์ ์ ์ํ ์ฝ๋ฉํ ์คํธ๋ค
- ์์ด
- ์ ํ ํฌ ํ์ด์ฌ
- ์ฐธ์กฐ ๋ณ์
- ํ๋ก๊ทธ๋๋จธ์ค
- Do_it
- MacOS
- Do it
- 2BPerfect
- ์ง ๊ฐ ์์ธก ๋ถ์
- ์๋ฐ
- ๋ฐ์ค๊ทธ๋ํ
- java
- ๋ธ๋ผ์ฐ์ ์คํ
- dacon
- jdbc
Archives
- Today
- Total
๐ฆ ๊ณต๋ฃก์ด ๋์!
2BPerfect...15 ๋ณธ๋ฌธ
๋ฐ์ดํฐ ์๊ฐํ 4
#๊ทธ๋ํ ์ ์ฅํ๊ธฐ
plt.savefig(file_name,[,dpi=dpi_n(๊ธฐ๋ณธ์ 72)])
improt matplotlib as mpl
mpl.rcParams['figure.figsize']
>>[6,4] ๋๋น ๋์ด
plt.savefig('~~',dpi=100)
pt.show()
## pandas๋ก ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ
pandas์ ๊ทธ๋ํ ๊ตฌ์กฐ
Series_data.plot([kind='graph_kind][,option])
DataFrame_data.plot([x=label ํน์ position,y=label ํน์ position,][kind='graph_kind']
[,option])
kind์ต์
line
scatter
bar
barh
hist
pie
##์์
s1.plot(grid=True)
plt.show()
dfr=pd.read_csv('',index_col='์ฐ๋')
dfr
import matplotlib
matplotlib.rcParams['font.family']='Malgun Gothic' # '๋ง์ ๊ณ ๋'์ผ๋ก ์ค์
matplotlib.rcParams['axes.unicode_minus']=False
dfr.plot()
plt.show()
rp=dfr.plot(grid=True,style=['r-*','g-o','b:*','m-.p']
rp.set_xlabel('')
rp.set_ylabel('')
rp.set_title('')
plt.show()
#pandas์ ์ฐ์ ๋
df.plot.scatter(x='๊ธฐ์จ',y='์์ด์คํฌ๋ฆผํ๋งค๋',grid=True,title='์ต๊ณ ๊ธฐ์จ๊ณผ ์์ด์คํฌ๋ฆผ ํ๋งค๋')
plt.show()
# pandas์ ๋ง๋ ๊ทธ๋ํ
import matplotlib.pyplot as plt
import pandas as pd
df=pd.DataFrame(al,index=ss,columns=['sdf'])
gb=df.plot.bar(grid=True)
gb.set_xlabel('ํ์ ')
gb.set_ylabel('ํ์ ')
gb.set_title('ํ์ ')
plt.show()
#pandas์ ํ์คํ ๊ทธ๋จ
import matplotlib.pyplot as plt
import pandas as pd
dm=pd.DataFrame(math,columns=['Students'])
mh=dm.plot.hist(bins=8,grid=True)
mh.set_xlabel('์ํ์ ์')
mh.set_ylabel('๋์')
mh.set_title('์ํ ์ํํ์คํ ')
plt.show()
๋ฐ์ดํฐ ์๊ฐํ 5
#pandas ํ์ด ๊ทธ๋ํ
dff.plot.pie()
plt.show()
explode_value(0.1,0,0,0,0)
fp=df.plot.pie(figsize(5,5),autopct='%.1f%%',startangle=90,
counterclock=False,explode=explode_value,shadow=True,table=True)
fp.set_ylabel('')
fp.set_title('')
#๊ทธ๋ํ๋ฅผ ์ด๋ฏธ์ง ํ์ผ๋ก ์ ์ฅ
plt.savefig('',dpi=200)
plt.show()
๋ฐ์ํ
'Development > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
2BPerfect...17 (0) | 2022.02.02 |
---|---|
2BPerfect...16 (0) | 2022.01.29 |
2BPerfect...14 (0) | 2022.01.27 |
2BPerfect...13 (0) | 2022.01.27 |
2BPerfect...12 (0) | 2022.01.27 |
Comments