본문 바로가기
데이터분석/dataframe.plot

데이터프레임 2개 시각화

by dohunNewte 2023. 4. 13.
반응형

fig=plt.figure(figsize=(10,3), dpi=100) # 액자설정
ax1, ax2=fig.subplots(1,2) # 도화지설정

df1.plot.box(fontsize=15, ax=ax1)
df1.plot.bar(fontsize=15, ax=ax2)

fig.tight_layout()

 

파라미타에 ax = ax1, ax= ax2를 추가해줌으로써 연달아서 시각화

728x90

'데이터분석 > dataframe.plot' 카테고리의 다른 글

데이터프레임.plot xtick바꾸기  (0) 2023.04.13

댓글