I would like to have a function which create a plot. Once I have the plot, I would like to use that in a multiplot.

For example, I could create the following function:

```
def fig_1(x):
    # create a new figure
    fig = plt.figure()
    plt.plot([1*x, 2*x, 3*x, 4*x])
    return fig

```

after that I would like something like:

```
subplot(3,2,1) = fig_1(1)
subplot(3,2,2) = fig_1(2)
subplot(3,2,3) = fig_1(3)
subplot(3,2,4) = fig_1(4)
subplot(3,2,5) = fig_1(5)
subplot(3,2,6) = fig_1(6)

```

In order to plot the final plot:

```
from pylab import *
pdf = matplotlib.backends.backend_pdf.PdfPages("Cal8010.pdf")
for fig in xrange(1,figure().number): 

```

In this way, it does not work. Could I do what I have in mind? 

Thanks for any kind of help