Dear all,
I struggle with a problem for a few days. Indeed, I am trying to fill the area under a 3d curve using PlotlyJS
without any success.
Here is the MWE:
using PlotlyJS
x = range(0., 2π, 100)
z = sin.(x)
X = [0.; collect(x); 2π]
Z = [minimum(z); z; minimum(z)]
Y = zeros(length(Z))
trace = scatter(x = X, y = Y, z = Z, type = "scatter3d", mode = "lines")
surf = mesh3d(x = X, y = Y, z = Z, delaunayaxis = "y", color = :white)
plot([trace, surf])
The results is the same using plot(scatter(x = X, y = Y, z = Z, type = "scatter3d", mode = "lines", surfaceaxis = 1, surfacecolor=:white))
. For a better understanding of the problem, here is a picture of the output.
It seems that this problem is a known issue of Plotly but I wonder if there is a julian workaround to this problem.
Note: I have no issues with Makie
and PyPlot
. Below, an example obtained with Makie
: