# Scatter plots with annotations of points

**URL:** <https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887>\
**Category:** Visualization\
**Created:** [April 20, 2020, 9:27am UTC](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887 "2020-04-20T09:27:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas\_Pevny](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_pevny/32/25466_2.png) [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Post date:** [April 20, 2020, 9:27am UTC](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887/1 "2020-04-20T09:27:37Z")

</div>

Dear All,

I would like to visualize the output of UMAP in form of a scatterplot, such that when I hover on points, it would show some additional information in textual form (or rendered HTML would be super nice).

Thanks for answers,  
Tomas

---

<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:** [April 20, 2020, 9:53am UTC](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887/2 "2020-04-20T09:53:45Z")

</div>

Different plotting package do this differently. If you use the Plots package with the `plotly()` backend, you can pass the text information to the `hover` keyword argument.

---

<div class="post-metadata">

**Author:** ![Tomas\_Pevny](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_pevny/32/25466_2.png) [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Post date:** [April 20, 2020, 9:58am UTC](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887/3 "2020-04-20T09:58:47Z")

</div>

Cool, that was what I was looking for.  
Hover is the key. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Tomas\_Pevny](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_pevny/32/25466_2.png) [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Post date:** [May 4, 2020, 1:07pm UTC](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887/4 "2020-05-04T13:07:32Z")

</div>

One more question,

is it possible to modify the behavior, such that it finds points closest to both `x` and `y` coordinates and not just to `x` coordinates?
