Alternative to scatter3 plot

6 次查看(过去 30 天)
John Deer
John Deer 2022-8-19
编辑: John Deer 2022-8-22
i often need to display X,Y,Z Data which are colored.
So far, i use
figure;
scatter3 (X,Y,Z, DotSize ,Z) ;
which delivers the desired result and is a single line of code (easy to remeber and usable on many different computers without implementing own stuff every time)
But the resulting graphs are very (and sometimes extremely) slow in reaction.
Even closing the graph is very slow.
A more potent graphic card does not have the slightest effect on that.
Is there another way to display X,Y,Z data colored and more efficient ?
Of course, i can use plot3, but then the data are not colored.
thx
  2 个评论
Mike Croucher
Mike Croucher 2022-8-19
Which version of MATLAB are you using? How big is the data?
John Deer
John Deer 2022-8-22
编辑:John Deer 2022-8-22
This behaviour ocurrs in all Versions that i've used so far, as they where Version 2017 to 2021.
The data have differenz size. The maximum possible size is 2048x2048, but usually the data is much less in size.
Below, there is an example.
The Data consists of several patches, and they are combined in a loop like
figure;
hold on;
for i = 1:maxSize
scatter3(X{i},Y{i},Z{i}, dotSize, Z{i})
text(...)
end

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by