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