Contourfm does not display enough colors
Afficher commentaires plus anciens
Hello,
I have to plot satellite data over a map. To do this I am using contourfm but it does not work well since it shows a very low color intervals. I have LAT, LON and Z matrices all of the same size (176x50). I use a my own colormap (CB). Below the code I am running:
LatLim=[35,39];
LonLim=[11,17];
CX1=[140,300];
ax=worldmap(LatLim,LonLim);
contourfm(LAT,LON,Z,CX1(1):(CX1(2)-CX1(1))/size(CB,1):CX1(2),'LineStyle','none');
setm(ax,'FontSize',10);
colormap(CB);
hc=colorbar;
% ylabel(hc,['TB_{',fn{idx}(3:end),'} (K)']);
hc.FontSize=9;
hc.Ticks=CX1(1):(CX1(2)-CX1(1))/size(CB,1):CX1(2);
hc.TickLabels=num2str(hc.Ticks','%.1f');
caxis(CX1);
I do not get any error but this is the image that I get

My data range bewteen 150 and 282 K. I should get something different with many other colors according to the colorbar. Furthermore, in the upper left corner I have no data, while the plot is pink. Any suggestions how to fix this issue? Attached, please find the LAT,LON,Z and CB files. Many thanks.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Geographic Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




