handles, labels = ax.get_legend_handles_labels() ax.legend(handles, labels). 指定legend line_up, = plt.plot([1,2,3], label='Line 2') ...
確定! 回上一頁