Subplot with Geoaxes.

조회 수: 13 (최근 30일)
Mia Hoffman
Mia Hoffman 2021년 11월 26일
답변: Chunru 2021년 11월 27일
I am trying to format a subplot with geoaxes (geoplot) figures. The code looks something like this below.
subplot(4,4,i)
gx(i) = geoaxes();
geoplot(gx(i),file_data(i).data.lat(file_data(i).gps_indx));
I then use the index to format the geoplot as shown below. Any help with getting the subplot feature to work would be appreciated.
gx(i).LatitudeAxis.Label.String =''; % Turn off latitude axes label
gx(i).LongitudeAxis.Label.String=''; % Turn off Longitude axes label

답변 (1개)

Chunru
Chunru 2021년 11월 27일
"geoaxes" cannot be the child of subplot. But we can set its position as follows (2x2 grid for example):
for i=1:2
for j=1:2
gx(i) = geoaxes('Position', [0.05+(j-1)*0.5 0.05+(i-1)*0.5 0.45 0.45]);
lat = rand(10,1)*180 -90;
lon = rand(10,1)*360;
geoplot(gx(i), lat, lon);
end
end

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by