import pandas as pd
from matplotlib import pyplot as plt
fig, ax0 = plt.subplots()
ax1 = ax0.twinx()
ax0.plot( df_tot['part_datecd'], df_tot['ntsal_amt_m'], color='black')
ax1.plot( df_tot['part_datecd'], df_tot['ntsal_amt_ff_m'] , color='blue')
ax0.set_xlabel('date')
ax0.set_ylabel('amt')
ax1.set_ylabel('amt(1')
'언어 꿀Tip > Python 꿀tip!' 카테고리의 다른 글
07_01_41. 그래프 범례 삽입 (graph legend), 여러 line 겹쳐 그리기 (0) | 2021.05.28 |
---|---|
07_01_40. matplotlib plot 크기 조정 (plot size) (0) | 2021.05.27 |
07_01_38. pivot_table index를 column으로 (index to column) (0) | 2021.05.27 |
07_01_35. local 환경에서 그래프(graph) 한글 깨짐 (0) | 2021.05.10 |
07_01_34. category 변수 다루기, handling (0) | 2021.04.28 |