I’m trying to visualize directions with go.Cone
and encountering a weird bug which may be related to this https://github.com/plotly/plotly.js/issues/3613. My dataset contains ONLY unit vectors, that is all vectors have norm 1. Thus, I would expect all the cones to have approximately the same size in the plot.
However, the size of the vectors shown in the plot varies quite a lot and depends on which traces I select, which is quite weird.
I’m posting some pictures here but, since it’s quite difficult to get an idea only from the pictures, I’m also providing the full HTML that you can open in the browser here: https://drive.google.com/file/d/1LRQMahVeS4IMEHIxiAC8OKtTy3JQUn5t/view.
Here is the code that I’m using to produce the plot
trace = go.Cone(
name=name,
x=data.x,
y=data.y,
z=data.z,
u=data.i,
v=data.j,
w=data.k,
hovertext=data.maa_point_name,
sizemode = 'absolute',
sizeref = 1,
showscale = False,
showlegend=True,
colorscale=['red','green'])