Info

此问题已关闭。 请重新打开它进行编辑或回答。

coastlines not plotting in new projection

2 次查看(过去 30 天)
Kate
Kate 2018-1-30
关闭: MATLAB Answer Bot 2021-8-20

Hi guys,

My apologies, I'm a longtime matlab user but new-ish to the mapping toolbox.

So I'd like to change the projection and a number of aesthetics on my map, but when I do so the coastlines no longer show up. Any idea what I'm doing wrong?

Thanks a million! Kate

[lat lon] = makeGrid(.166667)
worldmap([-60 90], [-180 180]) 
load coastlines
cummDose(mNoData)=0;
h=pcolorm(lat,lon,cummDose) 
h=gca;
axesm robinson
framem off; gridm off; mlabel off; plabel off
setm(gca,'MapProjection','robinson')
plotm(coastlat, coastlon, 'k')
[grad,im]=colorGradient(rgb('snow'),rgb('crimson'),25);

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by