데이터 시각화 - mabplotlib_라인플롯
데이터 시각화 - mabplotlib_라인플롯 matplotlib 임포트 import matplotlib.pyplot as plt 라인 플롯 그리기 plt.title('start') plt.plot([1,2,3,4,5],[2,10,4,20,5]) plt.xlabel('time') plt.ylabel('length') plt.show() 그래프 추가 plt.title('start') plt.plot([1,2,3,4,5],[2,10,4,20,5]) plt.plot([1,2,3,4,5],[2,4,6,8,10]) # 그래프 추가 plt.xlabel('time') plt.ylabel('length') plt.legend(['A_length', 'B_length']) # 범례 생성 plt.show()
2022. 6. 27.