Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【matplotlib】subplotsで複数枚のプロットを並べたときに、一部だけ白紙にしたいとき

import matplotlib.pyplot as plt

plot, ax = plt.subplots(2,2)
ax[1, 1].axis('off')

plt.show()

python — matplotlibで空白のサブプロットを作成するにはどうすればよいですか?

 

みたいな感じでOK