物件導向風格 fig, axes = plt.subplots(2, 1) axes[0].plot(x, np.sin(x)) axes[1].plot(x, ... 圖例能夠以軸物件的 legend() 方法搭配作圖時的 label 參數創建。
確定! 回上一頁