# Scatter! not working as before after upgrade to julia 1.7.1 and GLMakie 0.5.0

**URL:** <https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410>\
**Category:** Visualization\
**Tags:** glmakie\
**Created:** [January 11, 2022, 5:04pm UTC](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410 "2022-01-11T17:04:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peremato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peremato/32/29128_2.png) [@peremato](https://discourse.julialang.org/u/peremato)\
**Post date:** [January 11, 2022, 5:04pm UTC](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410/1 "2022-01-11T17:04:39Z")

</div>

The following code with julia 1.7.1 and GLMakie 0.5.0

```julia
using StaticArrays
using GLMakie

const T = Float32
N = 1000

low, hi = Point3{T}(-1,-1,-1), Point3{T}(1,1,1) 
dim = hi - low
points = Ref(low) .+ rand(Point3{T}, N) .* Ref(dim)

s = Scene()
scatter!(s, points, color=:blue)
display(s)

```

produces a static image

 ![Screen Shot 2022-01-11 at 17.44.24](https://global.discourse-cdn.com/julialang/original/3X/9/1/91a635d46f4c49917fa964af028eba0cf323a618.png)

while changing the last 3 lines with

```julia
scatter(points, color=:blue)

```

produces the desired interactive 3D image

 ![Screen Shot 2022-01-11 at 17.51.35](https://global.discourse-cdn.com/julialang/original/3X/3/b/3b0b62a7d45d440337fdbc4e803f60ac230d6219.png)

This was not the case with Julia 1.6 and GLMakie 0.4.6. Does anybody knowns what I am doing wrong on this trivial example? Thanks.

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [January 11, 2022, 5:24pm UTC](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410/2 "2022-01-11T17:24:18Z")

</div>

`Scene` got refactored to be lighter which among other things means it no longer tries to pick a suitable camera or draw axis. This functionality has moved to `LScene` which is what `scatter` creates. So instead of `Scene` you should use

```julia
fig = Figure()
ax = LScene(fig[1, 1])
scatter!(ax, ...)
display(fig)

```

---

<div class="post-metadata">

**Author:** ![peremato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peremato/32/29128_2.png) [@peremato](https://discourse.julialang.org/u/peremato)\
**Post date:** [January 11, 2022, 7:20pm UTC](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410/3 "2022-01-11T19:20:33Z")

</div>

Thanks very much. It works.
