필터 지우기
필터 지우기

How to combine a geoscatter and geobubble plot

조회 수: 5 (최근 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 CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by