mapshow with DisplayType 'Surface'
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kilian Kamkar
am 27 Dez. 2019
Kommentiert: Priyank Pathak
am 15 Sep. 2022
Hello,
I have a geotif file that I reprresent using mapshow with DisplayType set as 'Surface'. I would like to change the color of the image. To make it clear, here is my code with comments:
lat =[-50.414 -90.45];
lon=[-17.50 -55.984];
[A,x,y,I] = geoimread('glc_shv10_02.Tif',lat,lon);
%geoimread is a routine to read the data in specifed lat, lon region
% A is 2D array that I like to represnt using mapshow.
% I is the info structure
temp = 1-im2bw(A); % I convert to black and white
mapshow(temp,I.RefMatrix,'DisplayType', 'Surface');
%here I would like to change the color of the Surface from a default %value
Is there a way to change the color?
0 Kommentare
Akzeptierte Antwort
Shubh Sahu
am 30 Dez. 2019
Hello!
You can use 'colormap' in your program after 'mapshow'. Please refer this link which will be useful for you to analyze different type of 'colormap'.
https://www.mathworks.com/help/matlab/ref/colormap.html?searchHighlight=colormap&s_tid=doc_srchtitle
1 Kommentar
Priyank Pathak
am 15 Sep. 2022
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!