I would like to add a coast line, an outline map of landmass on the plot for the geodensityplot in the mapping toolbox. I am using 2021b and the mapping toolbox.
geodensityplot(dataLat,dataLong,, 'FaceColor', 'interp');
gx = gca;
gx.Basemap = 'streets-light'; % This is the default, so not necessary
I tried using geoshow and hold on, but I cant get the entire coastline, just from 90W to 90E... For some reason the data isn't +/-180... I know that the lat and lon are reversed in geoshow below, but for some reason the coastline will only line up if I reverse them (see attached jped), just won't produce all the coast line... The attach first jpeg screenshot shows how it ends up with the lat and lon correct for geoshow and the second attached file if I reverse them...
geoshow(coastlon,coastlat,'Color','k') % Yes, this has the lon/lat reversed, but I can't get the coast line to trace the geodensity plot otherwise