Create a heatmap for scattered data with geoscatter

11 ビュー (過去 30 日間)
Mohamed Ghali Kabbaj
Mohamed Ghali Kabbaj 2022 年 11 月 6 日
コメント済み: Kojiro Saito 2022 年 11 月 23 日
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 件のコメント
Mohamed Ghali Kabbaj
Mohamed Ghali Kabbaj 2022 年 11 月 12 日
When I say the values I used, I talk about the variable called "Quantiles", cause it's this variable that gives the scattered points a color.
Maybe your right, it's a contour plot, that we can get if we interpolate the colored scattered points I already have on my graph. Sorry about the confusion.
Do you have an idea how I can do this ?
Kojiro Saito
Kojiro Saito 2022 年 11 月 23 日

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by