フィルターのクリア

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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by