I need to plot a dataset of about 500000 (x,y,z) points (scattered 3D plot, using ListPointPlot3D and simultaneously Plot3D to compare to a smooth surface). I want to be able to rotate it, etc. In the computers I have access to, the interface starts to get slow at about 50000 points. Example:
n = 50000;
xmax = 50.0;
ymax = 20.0;
x = RandomVariate[UniformDistribution[{0.0, xmax}], n];
y = RandomVariate[UniformDistribution[{0.0, ymax}], n];
z = 30.0 - 15.0*(x + y)/70.0 + RandomVariate[NormalDistribution[0.0, 0.5], n];
Show[{Plot3D[30.0 - 15.0*(x + y)/70.0, {x, 0.0, xmax}, {y, 0.0, ymax}, ImageSize -> 600], ListPointPlot3D[{x, y, z}\[Transpose], ImageSize -> 600]}]
For n=500000, it takes very long to produce a graph and it then freezes if I try to rotate it. I can trim the data (create bins and then take small samples from each bin), but I was looking for ways to optimize the plotting so that it can handle more points without trimming.
Thanks,
OL.