Situation
Suppose I have position coordinates at specific points in time. Say the data will look like
data = A[rand(100, 3), sort(rand(100, 1))]
where data(:,1)are the x-coordinates, data(:,2)y-coordinates, data(:,3)height and data(:,4)recording time.
I could easily build this data using
pxy = subplot(2,2,1) % Plot for X-Y-Data
plot(data(:,1), data(:,2))
ptx = subplot(2,2,2) % Plot for T-X-Data
plot(data(:,4), data(:,1))
pty = subplot(2,2,3) % ... and so on
plot(data(:,4), data(:,2))
pth = subplot(2,2,4)
plot(data(:,4), data(:,3))
Now, to view the shapes, it would be great to synchronize the axes.
First thoughts on opportunities
A trivial approach can use linkaxesfor the time axis, for example,
linkaxes([ptx, pty, pth], 'x')
However, this leaves xy-plot unchanged. Thus, a weaker question is how to relate the y axis from ptxto the x axis pxy.
But let's make it more complicated:
Factual question
, , pxy pth. , , pxy, , pxy, pth . , pth pxy , .
, 4 , .
, ?
- hold on.