霸气柚子

文章
5
资源
0
加入时间
4年1月24天

matplotlib中的legend()——用于显示图例

legend()的一个用法: 当我们有多个 axes时,我们如何把它们的图例放在一起呢?? 我们可以这么做: import matplotlib.pyplot as pltimport numpy as npx = np.arange(1, 11)fig = plt.figure(1)ax1 = plt.subplot(2, 1, 1)ax2 = plt.subplot(2, 1, ...