Azzera filtri
Azzera filtri

How to combine a geoscatter and geobubble plot

5 visualizzazioni (ultimi 30 giorni)
Elliot Jenkins
Elliot Jenkins il 17 Gen 2023
Risposto: Suraj il 2 Mar 2023
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.

Risposte (1)

Suraj
Suraj il 2 Mar 2023
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.

Categorie

Scopri di più su Geographic Plots in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by