python 在Matplotlib中,參數在fig.add_subplot(111)中意味着什麼?

import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [1, 4, 9, 16, 20] fig = plt.figure() fig.add_subplot(111) plt.scatter(x, y) plt.show() 找了很多文檔, 基本都是粘貼複製,沒幾個明確指出的,總結了一下: 這些是作爲單個整數編碼的子繪圖網格參數。例如,「
相關文章
相關標籤/搜索