title: Adding a figure created in a function to another figure's subplot
body: <p>I created two functions that make two specific plots and returns me the respective figures:</p>
  <pre><code>import matplotlib.pyplot as plt
  
  x = range(1,100)
  y = range(1,100)
  
  def my_plot_1(x,y):
      fig = plt.plot(x,y)
      return fig
  
  def my_plot_2(x,y):
      fig = plt.plot(x,y)
      return fig
  </code></pre>
  <p>Now, outside of my functions, I want to create a figure with two subplots and add my function figures to it. Something like this:</p>
  <pre><code>my_fig_1 = my_plot_1(x,y)
  my_fig_2 = my_plot_2(x,y)
  
  fig, fig_axes = plt.subplots(ncols=2, nrows=1)
  fig_axes[0,0] = my_fig_1
  fig_axes[0,1] = my_fig_2
  </code></pre>
  <p>However, just allocating the created figures to this new figure does not work. The function calls the figure, but it is not allocated in the subplot. Is there a way to place my function figure in another figure's subplot?</p>