Create a heatmap for scattered data with geoscatter
이전 댓글 표시
I am trying to create a heatmap on geographicl plot using some values.
Here is the plotting part of my code :
Note that :
Quantiles = the data I used for the colors in each point on the map
%% Partie graphique
gs = geoscatter(Latitude,Longitude,70,Quantiles,"filled","DisplayName",'Intensité');
FigTitle=sprintf("IDF : T=%i ",T0);
title(FigTitle);
geobasemap streets
%Setting the colorbar
c = colorbar;
ColorBarValues=sort(unique(round(Quantiles)));
ColorBarValues=[ColorBarValues(1) floor(ColorBarValues(2)):floor(ColorBarValues(end-1)) ColorBarValues(end)];
set(c,'YTick',ColorBarValues,'YTickLabel',ColorBarValues)
c.Label.String = "Intensités";
%Data Tips
row = dataTipTextRow('Intensité',Quantiles);
gs.DataTipTemplate.DataTipRows(3) = row;
I was able to use geoscatter for discret points and I get this :

What I wish is to find a way to interpolate the values I used to create a heatmap in this region.
If my question is not clear, please do tell me, I will try to rephrase it :)
댓글 수: 3
Walter Roberson
2022년 11월 6일
What I wish is to find a way to interpolate the values I used
It is not clear what you mean by "the values I used"
to create a heatmap in this region.
Heatmaps involve repeated combinations of coordinate. For example if you had a disease and number of genetic analysis, you might want to visualize which genes were common in people that had the disease. I do not see what the repeated combinations of coordinates would be in your case?
I wonder if instead you are looking for a contour plot?
Mohamed Ghali Kabbaj
2022년 11월 12일
Kojiro Saito
2022년 11월 23일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!