2016-12-25 55 views

回答

9
import matplotlib.pyplot as plt 

fig, axs = plt.subplots(3,3) 
fig.delaxes(axs[-1, -1]) 
fig.delaxes(axs[-1, -2]) 

plt.show() 

enter image description here

+0

感謝@Serenity,什麼是[-1,-1]和[-2,-2] – user308827

+1

你有一個3x3子圖的網格。我設置了要刪除的子圖的座標(這些是最後兩個圖)。 – Serenity