DataScience/Python
두 개의 데이터 프레임을 서브 플롯으로 배치해보자
leopard4
2022. 12. 22. 21:33
fig, ax = plt.subplots(1, 2)
df1['Win %'].plot(ax=ax[0])
hero.plot(ax=ax[1])
ax[0].set_title('Data Frame 1')
ax[0].set_xlabel('X Axis')
ax[0].set_ylabel('Y Axis')
ax[1].set_title('Data Frame 2')
ax[1].set_xlabel('X Axis')
ax[1].set_ylabel('Y Axis')
ax[1].legend()
plt.show()