3
創建一個特定的情節是很多工作,所以我想通過創建一個返回一個數字的函數f()
來實現自動化。我可以告訴python將現有人物放入新圖中嗎?
我想調用這個函數,這樣我可以把結果放在一個子圖中。無論如何,我可以做到這一點?下面是一些僞代碼解釋了我的意思
figure_of_interest = f()
fig,ax = plt.subplots(nrows = 4,cols = 1)
ax[1].replace_with(figure_of_interest)