Hi,

I want to know if it is possible to create a plot on several subplots. For instance :

pl.subplot(2, 2, 1)

pl.plot(y1)

pl.sublot(2, 2, 2)

pl.plot(y2)

pl.subplot(2, 2, ???) # Create a plot on the last line

plot(y3)

Is it possible ?

Matthieu

Although I am not completely sure what you are asking, I think you are

asking for:

subplot(221)

subplot(222)

subplot(212)

then the last subplot (bottom row) will span both columns.

JDH

## ···

On 9/7/07, Matthieu Brucher <matthieu.brucher@...287...> wrote:

Hi,

I want to know if it is possible to create a plot on several subplots. For

instance :

pl.subplot(2, 2, 1)

pl.plot(y1)

pl.sublot(2, 2, 2)

pl.plot(y2)

pl.subplot(2, 2, ???) # Create a plot on the last line

plot(y3)

Is it possible ?

Although I am not completely sure what you are asking, I think you are

asking for:

subplot(221)

subplot(222)

subplot(212)

then the last subplot (bottom row) will span both columns.

JDH

Thank you for the fast answer

That should be what I asked for. Won’t the other subplots be erased ?

Matthieu

Only if this subplots overlap -- in this case they do not. When a

previous subplot is overlapped by a new subplot, the old one is

erased.

JDH

## ···

On 9/7/07, Matthieu Brucher <matthieu.brucher@...287...> wrote:

Thank you for the fast answer

That should be what I asked for. Won't the other subplots be erased ?

Only if this subplots overlap – in this case they do not. When a

previous subplot is overlapped by a new subplot, the old one is

erased.

That means too that having a plot on 2/3 of the screen is not possible, I suppose ?

Matthieu

To do that you need to use the axes command (a subplot is just a

special case of an axes on a regular grid). For example, you could do

(the arguments are left, bottom, width, height)

axes([0.1, 0.7, 0.4, 0.25])

axes([0.55, 0.7, 0.4, 0.25])

axes([0.1, 0.1, 0.85, 0.55])

or some variant like that..

## ···

On 9/7/07, Matthieu Brucher <matthieu.brucher@...287...> wrote:

That means too that having a plot on 2/3 of the screen is not possible, I

suppose ?