str1 specifies the color of the data series and str2 specifies its label. Call matplotlib.pyplot.legend() to add the labels to the plot. plt.plot( ...
確定! 回上一頁