Plot bar graphs on map

Hi, I am wondering how to put 2D bar graph on a map. For example, I have some bar graphs of monthly temperature for several different weather station. And I want to put these graphs on a map corresponding to the location of each weather station. Is there anyway to do that with matlab?

3 件のコメント

Brian McNoldy
Brian McNoldy 2017 年 2 月 24 日
I see this question is only about 2 weeks old, but I am looking for a way to do exactly this and have not had any luck yet. Have you figured it out yet?
John Chilleri
John Chilleri 2017 年 2 月 24 日
Hello,
One approach is with bar3:
Creating random map and bars (ideally you have your own map):
map=randi(1000,10,10)+100;
Bars=round(rand(10,10)-.425);
h = bar3(Bars);
for i = 1:numel(h)
index = logical(kron(Bars(:,i) == 0,ones(6,1)));
BarsData = get(h(i),'zData');
BarsData(index,:) = NaN;
set(h(i),'zData',BarsData);
end
hold on
imagesc(map)
colormap(summer)
Which produces,
is this what you both are looking for?
O.Hubert
O.Hubert 2024 年 6 月 13 日
You can check my submission to FileExchange that does just that, although it was primarily aimed at categorical variables.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWeather and Atmospheric Science についてさらに検索

タグ

質問済み:

2017 年 2 月 7 日

コメント済み:

2024 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by