Geobubble, Line plot, and push button in one figure

9 ビュー (過去 30 日間)
Karla Ayala Avalos
Karla Ayala Avalos 2020 年 12 月 10 日
回答済み: Sahithi Kanumarlapudi 2020 年 12 月 15 日
How can I plot a geobubble, a line plot, and a pushbutton all in one figure. I tried using uicontrol but I was a bit confused. If maybe someone could provide an example, that would be very helpful.

回答 (1 件)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2020 年 12 月 15 日
Hi,
From your question I understand that you would like to create geobubble, push button and line plot on a single figure. You can achiveve that with the 'parent' property of all the three components.
For example, the below code creates geobubble and push button on a single figure
f = uifigure;
tsunamis = readtable('tsunamis.xlsx');
tsunamis.Cause = categorical(tsunamis.Cause);
g = geobubble(f,tsunamis,'Latitude','Longitude', ...
'SizeVariable','MaxHeight','ColorVariable','Cause')
p = uibutton(f);
Using this 'parent' property as per your requirement might help you.
Hope this helps!

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by