I have a list of pre-existing figures with the same x-axis and I want to stack them on a single canvas. For example, here I generate two figures separately - how would I put them together on a single plot?
import matplotlib.pyplot as plt
time = [0, 1, 2, 3, 4]
y1 = range(10, 15)
y2 = range(15, 20)
## Plot figure 1
fig1 = plt.figure()
plt.plot(time, y1)
## plot figure 2
fig2 = plt.figure()
plt.plot(time, y2)
## collect in a list
figs = [fig1, fig2]
plt.subplot(1, 1, 1)
## code to put fig1 here
plt.subplot(1, 1, 2)
## code to put fig2 here