PlotlyJS 3d scatter plot does not respect zmin and zmax

How can I fix zmin and zmax in the colorscale?

using PlotlyJS
PlotlyJS.plot(PlotlyJS.scatter(
    x=[0, 1], y=[0, 1], 
    mode="markers",
    marker=attr(
        size = 10,
        color = [-2, 1],
        showscale = true,
        zmin = -5,
        zmax = 5,
    ),
))

Try cmin and cmax instead?

1 Like

It worked. Thanks a lot!

1 Like