surfacem - how to show partial cells
Show older comments
Hi,
If I do
A = rand(3,3);
lat = [46 46.1 46.2; 42 42.1 42.2; 38 38.1 38.2];
lon = [10 11 12; 10.2 11.2 12.2; 10.4 11.4 12.4];
clf; axesm('MapProjection','eqdconicstd','MapLatLimit',[37.9 46.3]);
surfacem(lat,lon,A);
I will get 4 cells. But if I change the MapLatLimits to [37.9 46.1]:
clf; axesm('MapProjection','eqdconicstd','MapLatLimit',[37.9 46.1]);
surfacem(lat,lon,A);
The top right cell is missing because it is not fully within the lat/lon limits. How can I show cells/values that are only partially within the lat/lon limits in a map plot using surfacem/pcolorm etc?
Thanks, Fredrik, using R2015b
Accepted Answer
More Answers (1)
KSSV
on 25 Nov 2016
A = rand(3,3);
lat = [46 46.1 46.2; 42 42.1 42.2; 38 38.1 38.2];
lon = [10 11 12; 10.2 11.2 12.2; 10.4 11.4 12.4];
clf; axesm('MapProjection','eqdconicstd',......
'MapLatLimit',[min(lat(:)) max(lat(:))],'MapLonLimit',[min(lon(:)) max(lon(:))]);
surfacem(lat,lon,A);
5 Comments
Fredrik
on 25 Nov 2016
KSSV
on 25 Nov 2016
Can you show a figure you want?
Fredrik
on 29 Nov 2016
KSSV
on 29 Nov 2016
If this is the case, you have to pick only sea related coordinates and use surfm. There must be an option in the tool box to plot only sea or only land etc.
Fredrik
on 29 Nov 2016
Categories
Find more on Plot Data on axesm-Based Maps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!