Azzera filtri
Azzera filtri

Scatterm/plotm not working when plotting points over surfaces

1 visualizzazione (ultimi 30 giorni)
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

Risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by