3d plot contours, fixed startup script

This commit is contained in:
Pixelguy14
2025-01-13 12:50:57 -06:00
parent e5b796fce0
commit c2ffbc8275
5 changed files with 735 additions and 23 deletions
+10 -1
View File
@@ -138,7 +138,16 @@ end
)
# Dummy 3D surface plot
trace3D = PlotlyBase.surface(x=[1:10], y=[1:10], z=[1:10], colorscale="Viridis")
x = 1:10
y = 1:10
z = [sin(i * j / 10) for i in x, j in y]
trace3D = PlotlyBase.surface(x=x, y=y, z=z,
contours_z=attr(
show=true,
usecolormap=true,
highlightcolor="limegreen",
project_z=true
), colorscale="Viridis")
# Create conection to frontend
@out plotdata3d = [trace3D]
@out plotlayout3d = layout3D