overlay geotiffs with transparency using different colormaps
显示 更早的评论
If I have one geotiff plotted (using geoshow) in color how do I overlay another geotiff in black and white and make it partially tranparent?
采纳的回答
更多回答(1 个)
Bruno Pop-Stefanov
2014-10-23
编辑:Bruno Pop-Stefanov
2014-10-23
Calling geoshow a second time will overlay over what was previously displated. Use the 'FaceAlpha' property when calling geoshow for the second time to set the transparency.
For example, using the Display EGM96 Geoid Heights Masking Out Land Areas example in the doc page for geoshow:
% Load geoid and display
load geoid
% Create a figure with an Eckert projection
figure
axesm eckert4;
framem; gridm;
axis off
% Display the geoid as a texture map
geoshow(geoid, geoidrefvec, 'DisplayType', 'texturemap');
% Create a colorbar and title
hcb = colorbar('southoutside');
set(get(hcb,'Xlabel'),'String','EGM96 Geoid Heights in Meters.')
% Add the land in black with 30% transparency
geoshow('landareas.shp', 'FaceAlpha', 0.3, 'FaceColor','black');

类别
在 帮助中心 和 File Exchange 中查找有关 Geographic Coordinate Reference Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!