필터 지우기
필터 지우기

Scatterm/plotm not working when plotting points over surfaces

조회 수: 1 (최근 30일)
Lorenzo Luini
Lorenzo Luini 2014년 4월 7일
편집: Lorenzo Luini 2014년 4월 7일
Hello,
My problem is that I want to plot specific lat/lon points (using scatterm/plotm) over a surface (Digital Elevation Map) plotted with surfacem/surfm. However, points are not shown. Here is the code I use:
% plot map
hf=figure;
worldmap(latlim,lonlim)
% plot the DEM
kk=surfm(double(U.lat),double(U.lon),double(U.Heights));
% plot the site
hold on;
plotm(lat,lon,'sk', 'MarkerSize', 10, 'MarkerFaceColor', 'k');
% plot the pixels borders
for i=1:2
for j=1:2
la=latO(i,j);
lo=lonO(i,j);
hold on;
scatterm(la,lo,15,'ok','filled')
linem([la+Hres la+Hres],[lo-Hres lo+Hres],'-k','LineWidth',2)
linem([la-Hres la-Hres],[lo-Hres lo+Hres],'-k','LineWidth',2)
linem([la-Hres la+Hres],[lo-Hres lo-Hres],'-k','LineWidth',2)
linem([la-Hres la+Hres],[lo+Hres lo+Hres],'-k','LineWidth',2)
end
end
Note that lines plotted with linem are visible whilst points plotted with scatterm are not. Can anyone help me please? Thank a lot in advance. Regards,
Lorenzo Luini

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by