@empet, thank you very much for your help.
In Pluto, I will have to use PlotlyBase.jl
instead of PlotlyJS.jl
to render the plots (to save plots I use: import Plotly:savefig
). This turnaround was possible due to a terrific contribution by @disberd
here.
A couple of months ago, I played with colors in some 2D and 3D plots using PlotlyJS. I have just checked and came up with this version of your 3D fantastic plot. It looks better now, but how can I get rid of the sandy view of the projection of the contour curves on its basis?
Edited: I am on a Windows 10 machine, using Julia 1.6.3, PlotlyJS.jl v0.18.8, PlotlyBase v0.0.18, and Pluto v0.16.1.
Please see my efforts below, where I marginally changed your code:
begin
using PlotlyBase
using HypertextLiteral
using Colors # I am not sure Colors is doing anything in the plot
#using ColorSchemes
end
begin
surf = surface(x=x, y=y, z=z,
colorscale="pl_algae",
#colorscale = "Jet",
colorbar_len=0.7,
contours_z=attr(show=true, start=minimum(z),
size=0.4, width= 2, color="rgb(200,200,200)",
usecolormap=false, project_z=true),
contours_z_end=maximum(z))
proj = surface(x=x, y=y,
z=-5*ones(size(z)), #h=-5
surfacecolor=z,
#colorscale = "Hot",
colorscale="pl_algae",
showscale=false)
layout = Layout(width=600, height=600,
scene = attr(camera_eye=attr(x=-1.65, y= 1.65, z=0.75),
xaxis=merge(ax_commons, attr(showgrid=false)),
yaxis=merge(ax_commons, attr(showgrid=false)),
zaxis=merge(ax_commons,
attr(gridcolor="white",
gridwidth = 2,
range=[-5, maximum(z)+0.5]))))
pl = Plot([surf, proj], layout)
end