# Select point from plot \[not hover needed\], Makie

**URL:** <https://discourse.julialang.org/t/select-point-from-plot-not-hover-needed-makie/57081>\
**Category:** General Usage\
**Tags:** visualization, makie\
**Created:** [March 13, 2021, 4:05pm UTC](https://discourse.julialang.org/t/select-point-from-plot-not-hover-needed-makie/57081 "2021-03-13T16:05:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [March 13, 2021, 4:05pm UTC](https://discourse.julialang.org/t/select-point-from-plot-not-hover-needed-makie/57081/1 "2021-03-13T16:05:00Z")

</div>

Hello,  
while reading the documentation, I noticed that there is a section for interactivity and action on buttons, however I would like to know if it is possible to retrieve points from a plot by clicking on the plot?[hover over the plot is out of question I believe] Probably using Nodes…

---

<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:** [March 13, 2021, 6:29pm UTC](https://discourse.julialang.org/t/select-point-from-plot-not-hover-needed-makie/57081/2 "2021-03-13T18:29:16Z")

</div>

`mouse_selection(scene[, range])` will return the currently hovered plot and an index into the plot which corresponds to one element of it. (E.g. a point of a scatter plot) If you want to do selections on click you can react to `mousebuttons` updates or use a mouse state machine which I don’t think is documented…?

[https://github.com/JuliaPlots/AbstractPlotting.jl/blob/master/src/makielayout/mousestatemachine.jl](https://github.com/JuliaPlots/AbstractPlotting.jl/blob/master/src/makielayout/mousestatemachine.jl)
