Welcome, @longistamina.
I’m not sure, in Python the desired behaviour seems to be the default, doesnt’t it?
import plotly.graph_objects as go
import pandas as pd
df = pd.read_csv(
"https://raw.githubusercontent.com/plotly/datasets/master/cone_plot_data.csv"
)
fig = go.Figure(
data=go.Cone(
x=df["x"][:10],
y=df["y"][:10],
z=df["z"][:10],
u=df["u"][:10],
v=df["v"][:10],
w=df["w"][:10],
sizemode="raw",
sizeref=0.1,
colorscale="Portland",
#cmin=0,
#cmax=80,
hoverinfo="u+v+w+text",
text="-> wind <-",
anchor = "tail",
),
)
fig.show()
data:
,u,v,w,x,y,z
0,0.56851,0.62783,-0.001017,70.188,17.5,-0.002
1,0.56851,0.62783,-0.001017,71.791,17.5,-0.002
2,0.56851,0.62783,-0.001017,73.393,17.5,-0.002
3,0.87909,0.62783,-0.001017,74.996,17.5,-0.002
4,0.56851,0.62783,-0.001017,76.599,17.5,-0.002
5,0.56851,0.62783,-0.001017,78.202,17.5,-0.002
6,0.56851,0.27732,-0.001017,79.805,17.5,-0.002
7,0.87909,-0.42369,-0.001017,81.407,17.5,-0.002
8,0.87909,-0.42369,-0.001017,83.01,17.5,-0.002
9,0.87909,0.27732,-0.001017,84.613,17.5,-0.002