Retain "pixel"ation in coastlines (map)

1 visualizzazione (ultimi 30 giorni)
Vesp
Vesp il 11 Lug 2016
Risposto: Walter Roberson il 11 Lug 2016
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.

Risposta accettata

Walter Roberson
Walter Roberson il 11 Lug 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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by