# Highlight point on heatmap

**URL:** <https://discourse.julialang.org/t/highlight-point-on-heatmap/62348>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [June 3, 2021, 7:01pm UTC](https://discourse.julialang.org/t/highlight-point-on-heatmap/62348 "2021-06-03T19:01:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZettEff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zetteff/32/31976_2.png) [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Post date:** [June 3, 2021, 7:01pm UTC](https://discourse.julialang.org/t/highlight-point-on-heatmap/62348/1 "2021-06-03T19:01:13Z")

</div>

My goal is to highlight one specific point on a heatmap.

My attempt to achieve this using `heatmap` + `scatter!` does not show the values properly.

```julia
using Plots

XX, YY = 1:100,1:100 
ZZ = [x*y for x in XX, y in YY]
heatmap(XX,YY, ZZ, xlabel="x", ylabel="y")
scatter!([10],[10],[7000], legend=false)

```

Any hint how to achieve this?

Thanks!

---

<div class="post-metadata">

**Author:** ![briochemc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/briochemc/32/4209_2.png) [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Post date:** [June 4, 2021, 1:43am UTC](https://discourse.julialang.org/t/highlight-point-on-heatmap/62348/2 "2021-06-04T01:43:55Z")

</div>

You are actually plotting a 3D scatter with this call. For a 2D scatter, you want one of those or something similar:

```julia
scatter!([10], [10], zcolor=[7000], legend=false) # color of 7000 on the colorscale
scatter!([10], [10], mcolor=:white, legend=false) # white color

```

---

<div class="post-metadata">

**Author:** ![ZettEff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zetteff/32/31976_2.png) [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Post date:** [June 4, 2021, 5:47am UTC](https://discourse.julialang.org/t/highlight-point-on-heatmap/62348/3 "2021-06-04T05:47:33Z")

</div>

Thanks, zcolor works!
