Borrar filtros
Borrar filtros

How to combine a geoscatter and geobubble plot

5 visualizaciones (últimos 30 días)
Elliot Jenkins
Elliot Jenkins el 17 de En. de 2023
Respondida: Suraj el 2 de Mzo. de 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.

Respuestas (1)

Suraj
Suraj el 2 de Mzo. de 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.

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by