# Cannot plot in interactive mode

**URL:** <https://discourse.julialang.org/t/cannot-plot-in-interactive-mode/52111>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [December 19, 2020, 11:45pm UTC](https://discourse.julialang.org/t/cannot-plot-in-interactive-mode/52111 "2020-12-19T23:45:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikolasborrel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nikolasborrel/32/20262_2.png) [@nikolasborrel](https://discourse.julialang.org/u/nikolasborrel)\
**Post date:** [December 19, 2020, 11:45pm UTC](https://discourse.julialang.org/t/cannot-plot-in-interactive-mode/52111/1 "2020-12-19T23:45:24Z")

</div>

I’m struggling with plotting in interactive mode in VS Code (without Jupyter Lab). According to [Backends · Plots](https://docs.juliaplots.org/latest/backends/), Plotly(JS), PyPlot, InspectDR are most suitable.

I’m plotting surface plots of triangles: x, y and z are vectors of length N X M and (x\_i, y\_i) = (x[i],y[i]) are the coordinates for the z[i] function value.

```julia
using Plots; # using either pyplot(), plotly() or inspectdr()
plot(x, y, z, st= :surface)

```

I have tried the 3 options:

1. Plotly: interaction works, but not rendered correctly due to the bug [https://github.com/JuliaPlots/Plots.jl/issues/3052](https://github.com/JuliaPlots/Plots.jl/issues/3052)

2. PyPlot: cannot get it to work interactively. How do I tell PyPlot to plot in interactive mode?

3. InspectDR: doesn’t implement surface type

I get correct, but non-interactive, plots in GR and PyPlot. Any suggestions for interactive plots (except for calling PlotlyJS.plot(…) directly)?

Thanks
