Retain "pixel"ation in coastlines (map)
1 view (last 30 days)
Show older comments
Hello all,
Is there any way to remove smoothing in Matlab's map coastlines? I would like to retain the "pixel"ation of the coastlines if possible. Below is the current map that I have.
figure('Color','white')
latlim = [-90 90];
lonlim = [ 0 360];
gratsize = 1 + [diff(latlim), diff(wrapTo360(lonlim))]/6;
[lat, lon] = meshgrat(latlim, lonlim, gratsize);
ax= worldmap ('world')
setm(ax,'mlabelparallel',-90)
coast = load('coast');
geoshow(coast.lat, coast.long, 'Color', 'black')
contourfm(latlim,lonlim,finalmap')
Thank you for your time and input.
0 Comments
Accepted Answer
Walter Roberson
on 11 Jul 2016
If you are using R2014b or later, try experimenting with the new GraphicsSmoothing control; see http://www.mathworks.com/help/matlab/examples/using-graphics-smoothing.html
0 Comments
More Answers (0)
See Also
Categories
Find more on Mapping Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!