matplotlib.pyplot中add_subplot方法參數的含義

ax = fig.add_subplot(349) 參數349的意思是:將畫布分割成3行4列,圖像畫在從左到右從上到下的第9塊 那第十塊怎麼辦,3410是不行的,可以用另一種方式(3,4,10)。 fig = plt.figure() ax = fig.add_subplot(2,1,1) ax.plot(x,y) ax = fig.add_subplot(2,2,3)#重新開始分區,並非從上一處
相關文章
相關標籤/搜索