How to add a legend in Python's Matplotlib library? Label it with the label keyword argument in your plot method. Before plt.show() , call plt.legend ...
確定! 回上一頁