matplotlib, plotly 로 파이썬 라인 그래프 그리기
파이썬 라인 그래프(matplotlib, plotly)¶In [1]: import numpy as np# 샘플데이터(a) 생성a = np.random.randint(9, 15, size=10)a Out[1]:array([13, 10, 14, 12, 11, 10, 9, 14, 13, 14])In [2]: # 샘플데이터(b) 생성b = np.random.randint(8, 16, size=10)b Out[2]:array([ 9, 9, 15, 8, 14, 13, 10, 15, 11, 8])In [3]: # X축 값 지정time = np.arange(1,11)time Out[3]:array([ 1, 2, 3, 4, 5, 6, 7, 8, ..
2022. 12. 10.