[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lining up the axes of multiplots/subplots
From: |
Joseph Wakeling |
Subject: |
Re: Lining up the axes of multiplots/subplots |
Date: |
Fri, 17 Nov 2006 16:48:25 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060918) |
Ron Crummett wrote:
> How about
>
> axis([xmin xmax ymin ymax])
>
> on each subplot? Just call it after each subplot. You can use this to
> align both x- and y-axes as you want.
OK, but that just affects the values on the axes---it doesn't actually
line them up, does it?
You can see what I mean by adding a caption to the Y axis of one of
these subplots, but not the other, or by running the following code:
x = 1:100;
subplot(2,1,1)
plot(x,0.1*x)
subplot(2,1,2)
plot(x,100*x)
The two subplots have the same *scale* on the X axis, from 0 to 100, but
they are not aligned with each other. It would only work if all axes
were identical in terms of their labels.