I have a function called makeplot which ends like this
plt.plot(t,b,"k-")
plt.title("R0 = {}".format(beta/gamma))
plt.xlabel("Time")
plt.ylabel("Size of [B]")
plt.show()
I wish to create subplots using this function when I use different inputs. I have attempted to plot like this:
fig, axs = plt.subplots(2,2)
axs[0,0] = makeplot(1,1)
axs[0,1] = makeplot(1,2)
axs[1,0] = makeplot(1,4)
axs[1,1] = makeplot(4,1)
It doesn't like my method and displayed the first one with 3 empty ones next to it. Then it plotted the following 3 independently