# Error in ploting a surface with Plots+plotlyjs()

**URL:** <https://discourse.julialang.org/t/error-in-ploting-a-surface-with-plots-plotlyjs/50373>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [November 18, 2020, 11:26am UTC](https://discourse.julialang.org/t/error-in-ploting-a-surface-with-plots-plotlyjs/50373 "2020-11-18T11:26:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiago](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiago/32/22567_2.png) [@tiago](https://discourse.julialang.org/u/tiago)\
**Post date:** [November 18, 2020, 11:26am UTC](https://discourse.julialang.org/t/error-in-ploting-a-surface-with-plots-plotlyjs/50373/1 "2020-11-18T11:26:20Z")

</div>

Hello,

I’m having troubles to plot a surface using the `plotlyjs()` of the package `Plots.jl`.  
Let me show you a simple example of what I’m getting:

```julia
plotlyjs()
x=1:10
y=1:10
z=rand(10,10)
plot(x,y,z,st=:surface,fill=true)

```

And the output:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/f/7f3af89b369aec19d2e2748cd2f63595f9cf0ef9.png)

Instead, if I switch to the gr() backend I’ll get a nice surface:

```julia
gr()
plot(x,y,z,st=:surface,fill=true)

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/7/87383ab132a16fa3c9ab13bc74652b9190f306f7.jpeg)

But for what I’m trying to visualis, I need the interactivity that the plotlyjs offers.  
I don’t know if this information is relevant or not, but I’m using VSCode.

Any idea why this is happening?

Cheers,  
Tiago

---

<div class="post-metadata">

**Author:** ![lungben](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lungben/32/12314_2.png) [@lungben](https://discourse.julialang.org/u/lungben)\
**Post date:** [November 18, 2020, 12:02pm UTC](https://discourse.julialang.org/t/error-in-ploting-a-surface-with-plots-plotlyjs/50373/2 "2020-11-18T12:02:41Z")

</div>

I got the same issue:

[https://github.com/JuliaPlots/Plots.jl/issues/3052](https://github.com/JuliaPlots/Plots.jl/issues/3052)

---

<div class="post-metadata">

**Author:** ![tiago](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tiago/32/22567_2.png) [@tiago](https://discourse.julialang.org/u/tiago)\
**Post date:** [November 18, 2020, 12:48pm UTC](https://discourse.julialang.org/t/error-in-ploting-a-surface-with-plots-plotlyjs/50373/3 "2020-11-18T12:48:40Z")

</div>

Did you tried with plotly()? I tried and the plot pane opens but with no plot (in VSCode and windows 10)
