plot.subplots() でグラフの縦方向と横方向の数を指定する。
例
import numpy as np
from matplotlib import pyplot as plt
x1 = np.linspace(-5,5,100)
x2 = np.linspace(-1,1,100)
fig, axs = plt.subplots(2,2)
ax1 = axs[0,0]
ax2 = axs[0,1]
ax3 = axs[1,0]
ax4 = axs[1,1]
ax5 = axs[1,0]
ax6 = axs[1,1]
ax1.scatter(x1,np.sin(x), s=20, alpha=0.5)
ax2.scatter(x1,np.asin(x), s=20, alpha=0.5)
ax3.plot(x1,np.sin(x))
ax4.plot(x1,np.asin(x))
ax5.plot(x1,np.asin(x))
ax6.plot(x1,np.cos(x))
plt.show()