[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lining up the axes of multiplots/subplots
From: |
John W. Eaton |
Subject: |
Lining up the axes of multiplots/subplots |
Date: |
Fri, 17 Nov 2006 10:52:00 -0500 |
On 17-Nov-2006, Joseph Wakeling wrote:
| I'm hoping someone can give me some advice on multiplot(), subplot() and
| related commands. I've played around with them a bit but not had
| success in achieving what I want.
|
| Here's the aim: two plots, one above the other, sharing the same X
| scale. The X axes must line up together.
|
| I want to plot several data sets in the first plot, and some different
| ones in the second.
|
| Now, I can do ...
|
| #first
| subplot(2,1,1)
| plot(x1,y1)
| hold on
| plot(x2,y2)
| #etc
| hold off
|
| #then
| subplot(2,1,2)
| plot(a1,b1)
| hold on
| plot(a2,b2)
| #etc
| hold off
|
| ... to get the plots one above the other, but this doesn't do anything
| to align the axes. What commands do I have to use to achieve this?
That's a gnuplot problem, so ask the gnuplot people.
jwe