Problem with cone plots on plotly

I have made the following plot:

However, if I simply multiply the value of x by 1000, I get a different plot. The values of u, v and w remain unchanged:

Notice that the u wind has changed a lot in the second plot, but the u wind array still remains the same.
Any ideas of what is going on?

Here is the code for the first plot:

import plotly.graph_objects as go
import numpy as np

from plotly.offline import plot
import plotly.graph_objs as go
import plotly.figure_factory as ff
import numpy as np

import plotly.graph_objects as go
from plotly.subplots import make_subplots
import numpy as np

x = X.flatten()
y = Y.flatten()
z = Z.flatten()

U = U.real
V = V.real
W = W.real

fig = go.Figure(data=go.Cone(
x=x,
y=y,
z=z,
u=u,
v=v,
w=w,
sizemode=“absolute”,
sizeref=30,
colorscale=‘Blues’,
anchor=“tip”))

plot(fig)

Hi @mgomes
Welcome to the community,

do you have data that you can share with us? That way, we can try to replicate the issue on our local machines?

Sure, here is a link to the code: mountain-flows/testkata.py at main · Mgomes96/mountain-flows · GitHub

You shouldn’t need to download any packages in order for it to work. The plotly part is only a small part in in the end of the code. There is a line towards the end which reads: “#Uncommenting the next line causes the results to change dramatically” which if you uncomment results in different results even with the vector fields remaining the same.

Thank you!