Scatterm/plotm not working when plotting points over surfaces
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!