# Problem with plotting ‘scatter3d’ for data with an element number greater than some specific number

**URL:** <https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621>\
**Category:** General Usage\
**Created:** [September 6, 2018, 2:24pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621 "2018-09-06T14:24:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlinJulia](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@AlinJulia](https://discourse.julialang.org/u/AlinJulia)\
**Post date:** [September 6, 2018, 2:24pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/1 "2018-09-06T14:24:40Z")

</div>

I’m exploring ‘Julia v1’ and I run into a problem regarding the ‘scatter3d’ plotting of my data. Interestingly, I don’t get any plot, when I increase the element (column) number over a threshold number 8517. I am wondering causes this?  
My code is like this:

```julia
using Plots
m = rand(10000, 3)
ThresholderN = 8518
vect = [m[1:ThresholderN, i] for i=1:3]
scatter3d(vect[1], vect[2], vect[3], markersize=1)

```

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [September 6, 2018, 3:16pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/2 "2018-09-06T15:16:10Z")

</div>

Welcome! Please enclose your code in triple backticks (```` like this (multiline possible) ````) to make it more readable.

What package are you using to plot? Do you use a Jupyter notebook, a script, the REPL? Are there any error messages?

---

<div class="post-metadata">

**Author:** ![AlinJulia](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@AlinJulia](https://discourse.julialang.org/u/AlinJulia)\
**Post date:** [September 6, 2018, 4:09pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/3 "2018-09-06T16:09:39Z")

</div>

Hi! Thank you for the reply.  
I made the change regarding the readability. I use Plots, just as I modified in the code. The code gives a plot for numbers below the 8518 and then for numbers equal and above the 8518 it gives nothing, even an error message.

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [September 6, 2018, 4:38pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/4 "2018-09-06T16:38:46Z")

</div>

Well, this ones certainly weird - I can reproduce this, and after that I only get `send: No error` when trying to plot (even basic things).

```julia
julia> plot(1:10)
send: No error
send: No error

```

What’s interesting though is that it kills existing plots (even existing scatter3d). There’s really not much I can debug, but this certainly shouldn’t happen (it already closes everything for me with \<=4000 points). I recommend opening an issue at [the Plots repo](https://github.com/JuliaPlots/Plots.jl) - they’re much more likely to know what’s going on, especially since this seems like the backend is crashing. Please link them this or replicate the information over there.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 7, 2018, 1:23pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/5 "2018-09-07T13:23:39Z")

</div>

Is this using the GR backend?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [September 7, 2018, 1:30pm UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/6 "2018-09-07T13:30:16Z")

</div>

I think so, yes - the behaviour as described happens with the exact code posted by @AlinJulia and if I recall correctly the default backend is GR.

---

<div class="post-metadata">

**Author:** ![crbinz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/crbinz/32/1919_2.png) [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Post date:** [April 24, 2019, 1:11am UTC](https://discourse.julialang.org/t/problem-with-plotting-scatter3d-for-data-with-an-element-number-greater-than-some-specific-number/14621/7 "2019-04-24T01:11:01Z")

</div>

Sorry to resurrect this, but I’m running into the `send: No error` behavior as well, and this is the only other place I’ve seen that message come up at all. Unfortunately due to a few logistical issues I think it’s going to be difficult for me to create a MWE to reproduce this, but I was hoping that maybe someone here figured something out.
