I checked this SO Matplotlib returning a plot object but it does not really fit to my question.
What I would like to do is:
def func1():
fig1 = plt.plot (np.arange(0.0, 5.0, 0.1))
return fig1
def func2()
return plt.plot (np.arange(0.0, 5.0, 0.02))
fig1 = func1()
fig2 = func2()
plt.figure()
plt.add_subplot(fig1)
plt.add_subplot(fig2)
plt.show()
The above code is just a main idea. Could you suggest me how to do?
Thanks