# Not a question, but a 3D PlotlyJS gallery

**URL:** <https://discourse.julialang.org/t/not-a-question-but-a-3d-plotlyjs-gallery/65063>\
**Category:** Visualization\
**Tags:** plotlyjs\
**Created:** [July 21, 2021, 7:23pm UTC](https://discourse.julialang.org/t/not-a-question-but-a-3d-plotlyjs-gallery/65063 "2021-07-21T19:23:33Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![VivMendes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vivmendes/32/16477_2.png) [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Post date:** [October 16, 2021, 11:20am UTC](https://discourse.julialang.org/t/not-a-question-but-a-3d-plotlyjs-gallery/65063/8 "2021-10-16T11:20:00Z")

</div>

@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](https://discourse.julialang.org/t/pluto-plots-with-plotlybase-plotlyjs-with-working-static-html-export/61730/9).

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:

```julia
begin
	using PlotlyBase
	using HypertextLiteral
	using Colors # I am not sure Colors is doing anything in the plot
	#using ColorSchemes
end

```

```julia
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

```

 ![aaa](https://global.discourse-cdn.com/julialang/original/3X/2/2/2273ed3857a66b930cd4a56e74f64660b2cd022b.jpeg)

---

_[View the full topic](https://discourse.julialang.org/t/not-a-question-but-a-3d-plotlyjs-gallery/65063)._
