# Control point location via a slide in Makie

**URL:** https://discourse.julialang.org/t/control-point-location-via-a-slide-in-makie/42617
**Category:** New to Julia
**Created:** [July 6, 2020, 3:33pm UTC](https://discourse.julialang.org/t/control-point-location-via-a-slide-in-makie/42617 "2020-07-06T15:33:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)
#### Post date: [July 6, 2020, 3:33pm UTC](https://discourse.julialang.org/t/control-point-location-via-a-slide-in-makie/42617/1 "2020-07-06T15:33:39Z")

</div>

Here is an MWE that draws three points on a 2D graph. I would like to control the x-value of the 1st point via a text slider.

```julia
using Makie
s1, v1 = textslider(0.00f0:.1f0:1.0f0, "Variable", start = 0.5f0)

# Draw three points. 
scene = Scene()
x = 1
scatter!(scene, [x, 2., 3.], [2., 5., 3.], markersize=.1)
parent = vbox(s1, scene)

```

How can I use the slider to control the `x2 position of the first point draw `(x,2,3)`.

This will go a very long way towards helping me understand these concepts more deeply. Thanks.
