How to combine a geoscatter and geobubble plot

10 ビュー (過去 30 日間)
Elliot Jenkins
Elliot Jenkins 2023 年 1 月 17 日
回答済み: Suraj 2023 年 3 月 2 日
Hi,
I need to find a way to combine a geoscatter and a geobubble plot on the same axes. The bubble and scatter plots are exactly the same except the scatter plot has another parameter displayed by the colour. The reason I have to do this is because I want to display the legend for both the bubble size and colour, as in the scatter plot I can only display the legend for the bubble colour and have not found another way to work around this problem.
So I have made an identical geobubble plot that looks the same as the scatter plot except that they are all the same colour. I plan to overlay the scatter plot on the geobubble plot so the geobubbles are not visible but its legend can be displayed.

回答 (1 件)

Suraj
Suraj 2023 年 3 月 2 日
From what I can see, you had initially tried to represent two different parameters using bubble colour and size, respectively.
This representation can be achieved using a Geobubble plot. The first example in the documentation shows Tsunami-related data, stored as a table, plotted using a Geobubble plot. This should give you an idea of how to use a single Geobubble plot for your scenario as well.
Note: A Geobubble plot is a standalone visualization and does not support the hold command. Read more about it here.

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by