# 3d Plots with PlotlyJS

**URL:** <https://discourse.julialang.org/t/3d-plots-with-plotlyjs/67543>\
**Category:** General Usage\
**Tags:** plotting, plotlyjs\
**Created:** [September 2, 2021, 4:05am UTC](https://discourse.julialang.org/t/3d-plots-with-plotlyjs/67543 "2021-09-02T04:05:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donkeysaddle](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@donkeysaddle](https://discourse.julialang.org/u/donkeysaddle)\
**Post date:** [September 2, 2021, 4:05am UTC](https://discourse.julialang.org/t/3d-plots-with-plotlyjs/67543/1 "2021-09-02T04:05:26Z")

</div>

I can produce beautiful 3d plots with Plots.jl.

For example,

```julia
using Plots
x1 = 1:.001:2pi
y1 = cos.(1:.001:2pi)
z1 = sin.(1:.001:2pi)

x2 = 1:.001:2pi
y2 = 2*sin.(1:.001:2pi)
z2 = cos.(1:.001:2pi)

x3 = 1:.001:2pi
y3 = exp.(1:.001:2pi)
z3 = sin.(1:.001:2pi)

plot(x1,y1,z1)
plot!(x2,y2,z2)
plot!(x3,y3,z3)

```

However, I want the ability to interact with the resulting plots (rotate, zoom, etc.). How do I reproduce the results I get from the code above to get interactive plots using PlotyJS?

If you think I should use another plot package instead, I am all ears.

Thanks,

DS

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 2, 2021, 4:42am UTC](https://discourse.julialang.org/t/3d-plots-with-plotlyjs/67543/2 "2021-09-02T04:42:58Z")

</div>

[http://juliaplots.org/PlotlyJS.jl/stable/examples/3d/](http://juliaplots.org/PlotlyJS.jl/stable/examples/3d/)

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [September 2, 2021, 5:27pm UTC](https://discourse.julialang.org/t/3d-plots-with-plotlyjs/67543/3 "2021-09-02T17:27:20Z")

</div>

you could also use the plotlyjs backend via

```julia
plotlyjs()

```
