LInking two independent axes in 3D

I have defined two overlapping 3D axes in a figure. In the first, I have a 2D image. In the second axes, a 3D model. I have defined axis square, and the camera view angle (camva) for the two axes to be the same.
I want to be able to change the camera position of the image so that I can zoom in on it. I then want to created a second figure and redraw both axes such that the camera of the 2D images is in it's starting position (not zoomed in) and the camera position of the 3D model is adjusted to shrink the model by the amount that the CXR was zoomed.
I have made the camva equal for both axes but I can't seem to figure out how to link the scale on the two axes to achieve this effect. The zlim on both axis is the same and I have perspective set to orthogonal.
If anyone could assist with this, I'd greatly appreciate it.

 Accepted Answer

Walter Roberson
Walter Roberson on 23 Mar 2011
It sounds to me as if linkaxes() would do what you want. If not, then the slightly more general linkprop() would.

1 Comment

There is an example of doing this with linkprop here. See Christopher Creutzig's answer.

Sign in to comment.

More Answers (0)

Tags

Asked:

on 23 Mar 2011

Commented:

KAE
on 16 Jul 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!