How can I enhance scatter3() visibility with a heatmap?

조회 수: 19 (최근 30일)
Oliver
Oliver 2023년 3월 6일
답변: the cyclist 2023년 3월 6일
The data I'm working with contains coordinates of players partaking in a game.
I am trying to plot them in 3D in order to see which parts of the map are the most frequently inhabitated. So far, the work is mostly done by:
scatter3(XYZ(:,1),XYZ(:,2),XYZ(:,3),0.5)
There are 10^6 sets of coordinates in the data, and the "map" is very cluttered on the points of interest, making it indistinguishable which of these points is favored the most. Is there any way to involve a coloring that would scale based on the global point density?
Thanks in advance.DenseScatterPlot

답변 (1개)

the cyclist
the cyclist 2023년 3월 6일
I think it is possible that histogram2 or swarmchart3 might be useful to you.
I also recommend taking a look at the MATLAB Plot Gallery, to see if any examples look like what you want. You can pull code from there, too (including for the two functions I just mentioned).

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by