matplotlib plt.lengend图例放在图像的外侧1、图例在图中实例2、图例在图外
参考:https://www.jb51.net/article/186659.htmmatplotlib plt.lengend图例放在图像的外侧1、图例在图中实例import numpy as npimport matplotlib.pyplot as plt# 定义x,yX = np.linspace(0, 2*np.pi, 32, endpoint=True)C = np.cos(X)# figure的名称plt.figure('demon plot')#..