You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using PlotlyJS
using WebIO
begin# Define grid
x =range(-1, 1, length=100)
y =range(-1, 1, length=100)
z = [abs2(xi +1im* yi) for yi in y, xi in x] # note: Plotly expects z as rows = y, cols = xend# Create surface trace
trace =surface(
x = x,
y = y,
z = z,
showscale =false,
contours =attr(
z =attr(
show =true,
color ="white",
width =16,
)
)
)
savefig(
plot(trace, Layout(scene =attr(xaxis =attr(visible=false),
yaxis =attr(visible=false),
zaxis =attr(visible=false)))),
"test.png")
Versions:
Please provide the following:
output of julia command versioninfo()
Julia Version 1.11.5
Commit 760b2e5b739 (2025-04-1406:53 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin24.0.0)
CPU:8× Apple M3
WORD_SIZE:64
LLVM: libLLVM-16.0.6 (ORCJIT, apple-m2)
Threads:4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
JULIA_REVISE_WORKER_ONLY =1
Activity
jd-foster commentedon Apr 22, 2026
I had a chance to look into this. It appears to be a known bug in plotly: plotly/plotly.js#3668
and following that thread, it appears to come down to (certain/all?) browsers not supporting line width rendering as a limitation of WebGL:
https://stackoverflow.com/questions/47444239/how-to-use-gl-linewidth
jd-foster commentedon Apr 26, 2026
Closing due to an upstream issue - please comment if an update comes along.