爲什麼許多人都在matplotlib/pyplot/python裏邊使用fig, ax = plt.subplots()?

爲什麼許多人都在matplotlib/pyplot/python裏邊使用fig, ax = plt.subplots()?   fig, ax = plt.subplots() 在《Python for Data Analysis》 2nd Edition裏邊總是看到作者使用該函數, 雖然知道 它 等價於 fig = plt.figure() ax = fig.add_subplot(1,1,1)
相關文章
相關標籤/搜索