How do I link/lock multiple axis so that they all rotate simultaneously?

40 visualizaciones (últimos 30 días)
I have two sets of axis in one figure and I want to use my mouse to 3D-rotate the plots. The Axis are aligned using linkaxes() and ax1.Position = ax2.Position
The problem is, that only one plot is rotating at a time.
I used two axis, because I want a different colormap on each one.
Thanks for any suggestions! -Fabian

Respuesta aceptada

Jan
Jan el 6 de Ag. de 2018
The 'Position' property is the location relative to the figure. But you want to control the 'CameraPosition', 'CameraTarget', 'CameraUpVector' and 'CameraViewAngle'. Use linkaxes to link them.
  3 comentarios
Fabian Gock
Fabian Gock el 6 de Ag. de 2018
Editada: Adam Danz el 9 de Mzo. de 2022
I solved it with
linkprop([ax2 ax1], {'View', 'XLim', 'YLim', 'ZLim'})
Thanks :)
M Carpenter
M Carpenter el 20 de Mayo de 2019
This was very helpful, thank you Fabian and Jan!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by