<Python, matplotlib> subplot(ax)の作り方

Our Favorite Recipes — Matplotlib 2.0.0 documentation

subplotの作り方。

なにやら、ナイスなやり方はsubplots()を使うらしい。

# new style method 2; use an axes array
fig, axs = plt.subplots(2, 2, sharex=True, sharey=True)
axs[0,0].plot(x)

ほー。。。