โœŠ๐Ÿฟ Black Lives Matter. Please consider donating to Black Girls Code today.
๐Ÿ‡ Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Points disappear in 3d scatter

Hey,

I am trying to understand the projection mechanism in 3d scatter and got some weird results in one simple example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test plotly 3D</title>
    <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
    <div id="3d_scatter"></div>
<script>
    var trace1 = {
	x:[0, 0], y: [-0,1], z: [1, 7],
	mode: 'markers',
	marker: {
		color: [[255,0,0],[0,255,0]],
		size: 20,
		opacity: 1},
	type: 'scatter3d'
    };
    var data = [trace1];
    var layout = {
    scene:{
        xaxis:{
            range: [-5, 5]
        },
        yaxis:{
            range: [-5, 5]
        },
        zaxis:{
            range: [0, 10]
        },
        camera: {
            up:{
                x: 0,
                y: -1,
                z: 0
            },
            eye: {
                x: 0,
                y: 0,
                z: -0.42
            }
        },
        aspectmode: 'cube',
    },
};
    Plotly.newPlot('3d_scatter', data, layout);
</script>
</body>
</html>

running this script I can see the red spot, but if I change the parameter layout.scene.camera.eye.z = -0.4, the red spot disappear, if I see it right I still should see the red spot? why I donโ€™t see the red spot?

Thanks
Yuri