How to duplicate a figure ?

Hi all,

I'd like to write a function which, for a given data, plots it in 3 subplots
the following way:

    +-------+ +-------+ +-------+
    > > > > > >
    > > > > > >
    > > > > > >
    > > > > > >
    > A | | B | | C |
    > > > > > >
    > > > > > >
    > > > > > >
    > > > > > >
    +-------+ +-------+ +-------+
    0 1 0 0.1 0.9 1

where A,B and C should be the same figure ; only the x axis range should
differ.

As generating A is not straightforward, it would be useful in this case to be
able to duplicate A as B and A as C, then to change B and C's x axis.

Have you any idea on how to do this ?

I must confess I'd also find it useful if one could tell me how to change only
but the x axis range... I know the axis() function but it seems you must
provide both x & y ranges to this function so that's not what I need ; I also
tried

  gcf().axes[0].set_xlim((0,0.1))

but whithout success...

Thanks in advance,
cheers,
nicolas

Okay, for this question I know the answer: the xlim() function !

Nicolas

···

On Tuesday 07 June 2005 17:38, Nicolas Girard wrote:

I must confess I'd also find it useful if one could tell me how to change
only but the x axis range...