Matplotlib- 일련의 선 전체에 컬러 바 추가 변수 z의 여러 다른 값에 대해 두 변수 (x, y)에 대한 자세한 내용이 있습니다. 일반적으로 다음과 같은 범례가있는 선이 추가됩니다. import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) # suppose mydata is a list of tuples containing (xs, ys, z) # where xs and ys are lists of x's and y's and z is a number. legns = [] for(xs,ys,z) in mydata: pl = ax.plot(xs,ys,color = (z,0,0)) legns.append("z = %f"..