How to combine a geoscatter and geobubble plot
7 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!