Scatterm/plotm not working when plotting points over surfaces
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!