# Updating Julia has broken scatter plots

**URL:** <https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712>\
**Category:** Visualization\
**Created:** [June 11, 2021, 3:20am UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712 "2021-06-11T03:20:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![scotts](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scotts](https://discourse.julialang.org/u/scotts)\
**Post date:** [June 11, 2021, 3:20am UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/1 "2021-06-11T03:20:19Z")

</div>

After recently updating Julia from 1.4 to 1.6 I’ve found I can’t display data in scatter plots.

Plots works fine for standard line charts, but using scatter(x,y) or plot(x,y,seriestype=:scatter) both just display axes with no visible data points…

Any ideas???

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [June 11, 2021, 3:33am UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/2 "2021-06-11T03:33:24Z")

</div>

[Here](https://docs.juliaplots.org/latest/generated/attributes_series/) are the docs. If it doesn’t help, please post some code, starting from `using Plots` to the end with a verbal description of what happens and/or the error message.

---

<div class="post-metadata">

**Author:** ![scotts](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scotts](https://discourse.julialang.org/u/scotts)\
**Post date:** [June 11, 2021, 3:58am UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/3 "2021-06-11T03:58:08Z")

</div>

Ok, I can create a scatter plot, however, not with code that worked previously under 1.4.

I am wondering if it has something to do with sourcing the data from a Dataframe. See how it plots fine in the line chart, but the scatter chart has invisible points.

Also, those little red stop signs on the extracted columns from the data series weren’t there under 1.4. When I mouse over them I get a “Something went wrong displaying this object error”.

I have no idea what a Sentinel array is, but maybe this is the cause of the scatter fail?

 ![Untitled](https://global.discourse-cdn.com/julialang/original/3X/a/6/a6a2a1003612aa02aef6b7dc00fcf7b9d3f5ca94.png)

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [June 11, 2021, 4:47am UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/4 "2021-06-11T04:47:32Z")

</div>

Is there a reason you are using dot syntax for `x` and view syntax for `y`? If you make the `y` line look like the `x` line, does it change? Alt. inspect `x` and see if it shows as something more familiar.

Otherwise I would suggest you run this in repl so you know the eval order and can see any error messages.

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [June 11, 2021, 5:05am UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/5 "2021-06-11T05:05:26Z")

</div>

Can you copy-paste the code, rather than including an image? It will allow us to grab it and see if it works on our end.

[Please see these tips](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)!

---

<div class="post-metadata">

**Author:** ![scotts](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scotts](https://discourse.julialang.org/u/scotts)\
**Post date:** [June 11, 2021, 12:59pm UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/6 "2021-06-11T12:59:16Z")

</div>

Field1 is an input on the reactive Pluto notebook and this worked really well for selecting and slidering through a huge dataset amazingly quickly. PlutoUI is really neat!

I tried:

`x = [df1[!,"SowingYear"],df2[!,"SowingYear"]]`

Which works for the line plot but generates the same error for scatter.

I am not sure how I can express y in dot form but I don’t expect that will solve it. Hrmm

---

<div class="post-metadata">

**Author:** ![scotts](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scotts](https://discourse.julialang.org/u/scotts)\
**Post date:** [June 12, 2021, 4:13pm UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712/7 "2021-06-12T16:13:56Z")

</div>

the following fixed it

```julia
x = [collect(view(df1,!,"SowingYear")),collect(view(df2,!,"SowingYear"))]
y = [collect(view(df1,!,field1)),collect(view(df2,!,field1))]

```

Not as succinct as the old version but it pulls the data out of the `SentinelArray.ChainedVector` that seems to be hanging scatter
