Linking geoaxes using linkprop

조회 수: 4 (최근 30일)
Luke Alstrom
Luke Alstrom 2022년 6월 7일
댓글: Oleg S 2025년 7월 22일
I am trying to link together two geoaxes so that they both have the same axes limits and zoom. I have been able to do this with regular axes using linkaxes but this will not work for geoaxes. The following code does not produce any errors but the two axes are not linked.
geolink = linkprop([ax1 ax2], {'LatitiudeLimits', ...
'LongitudeLimits' ,'ZoomLevel'});
ax1.UserData = geolink;
ax2.UserData = geolink;

답변 (1개)

Amanjeet Pani
Amanjeet Pani 2022년 7월 13일
As i understand your main aim is to link the 2 geoaxes
you can do this by using the inbuilt linkaxes() in matlab
aditionally go through this link for more details on how to use it according to your need.
  댓글 수: 1
Oleg S
Oleg S 2025년 7월 22일
linkaxes() does not work on geoaxes, only on cartesian axes.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by