I see a promising problem with three-dimensional scatterplots: some points are drawn above the points that should be in front of them in the current projection. Example with a discretized cylinder:
[r, phi, h] = meshgrid(1, 0:pi/10:2*pi, 0:0.05:1); x = r.*cos(phi); y = r.*sin(phi); z = h; xyz = [x(:) y(:) z(:)]; scatter3(xyz(:,1), xyz(:,2), xyz(:,3), 50, xyz(:,3), 'filled') view(-37, 28)
Notice that some of the blue dots on the back are drawn above the red dots on the front. There is no problem in exporting a PNG image, so it makes no sense to provide an image.
So why is this happening? Does it depend on the order of points in the vectors x, y, z? Has it been fixed in new versions?
source share