假设存储在变量fig1至fig4中的一组4个matplotlib数字。
import matplotlib.pyplot as plt
fig1 = plt.figure()
plt.plot([1, 2, 3, 4])
fig2 = plt.figure()
plt.plot([2, 2, 2, 2])
fig3 = plt.figure()
plt.plot([1, 3, 1, 4])
fig4 = plt.figure()
plt.plot([4, 3, 2, 1])
# code to create subplots using the fig1 to fig4 variables
# i.e. without recreating the original 4 plots
使用matplotlib(或者可能是另一个包),如何创建子图的图形(例如下面的示例),子图是fig1到fig4?