To display a legend on any plot, you must call plt.legend() at some point in your code – usually, just before plt.show() is a good place.
確定! 回上一頁