# Scatter3d and pyplot backend in Plots.jl

**URL:** https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238
**Category:** Visualization
**Created:** [November 16, 2020, 5:59pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238 "2020-11-16T17:59:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![keithjlee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keithjlee/32/19469_2.png) [@keithjlee](https://discourse.julialang.org/u/keithjlee)
#### Post date: [November 16, 2020, 5:59pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238/1 "2020-11-16T17:59:48Z")

</div>

Hello! I’m having a very strange issue trying to visualize a 3D scatterplot using the pyplot backend in Plots.jl. The Z-axis position of my inputted coordinates do not seem to register, and only stays on the 0 value, while the X and Y positions are registered properly. No error message comes up, and I’ve tried rebuilding PyCall and Plots with no change in my issue. Has anyone seen something like this before?

For example, simply inputting `scatter3d([1, 5, 7], [2, 4, 5], [-4, 23, 4])` gives the following output:  
 ![example](https://global.discourse-cdn.com/julialang/original/3X/0/a/0a556091f6bdc46daa17faf6faae8b44fd25d07d.png)

And similar issues with much larger value sets that I am trying to visualize. All other backends that I have tried (gr, pgfplotsx, and plotlyjs) display the Z coordinates just fine.

---

<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: [November 17, 2020, 12:50pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238/2 "2020-11-17T12:50:49Z")

</div>

> [@keithjlee](#):
>
> `scatter3d([1, 5, 7], [2, 4, 5], [-4, 23, 4])`

That works fine for me on Plots 1.9.0

---

<div class="post-metadata">

### Author: ![Elmo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elmo/32/17979_2.png) [@Elmo](https://discourse.julialang.org/u/Elmo)
#### Post date: [November 17, 2020, 1:46pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238/3 "2020-11-17T13:46:20Z")

</div>

I have the same issue with pyplot, everything else works fine though.

---

<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: [November 17, 2020, 1:50pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238/4 "2020-11-17T13:50:42Z")

</div>

What is your version of Plots?

---

<div class="post-metadata">

### Author: ![keithjlee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keithjlee/32/19469_2.png) [@keithjlee](https://discourse.julialang.org/u/keithjlee)
#### Post date: [November 17, 2020, 3:43pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238/5 "2020-11-17T15:43:46Z")

</div>

I was using Plots 1.9.1.

Some good (and strange) news: I manually updated and rebuilt PyCall and PyPlot via package manager, and even though the return message noted that no changes were made during the update process, it seems to have resolved to issue. I’m now using Plots 1.9.1, PyCall 1.92.1, and PyPlot 2.9.0, for anyone else who may have had this issue.

Thanks for the troubleshooting!  
 ![resolved](https://global.discourse-cdn.com/julialang/original/3X/6/8/6832378e5bb95781c83a14ac934c8f6444af426e.png)
