# Heatmap with mousepicking	no axis markings and labels

**URL:** <https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521>\
**Category:** Visualization\
**Tags:** glmakie\
**Created:** [July 12, 2023, 9:18am UTC](https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521 "2023-07-12T09:18:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wulf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wulf/32/204058_2.png) [@Wulf](https://discourse.julialang.org/u/Wulf)\
**Post date:** [July 12, 2023, 9:18am UTC](https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521/1 "2023-07-12T09:18:32Z")

</div>

I output a heatmap, points and lines, to a scene in order to allow mouse interactions similar to this example.

[http://juliaplots.org/MakieReferenceImages/gallery//mouse\_picking/index.html](http://juliaplots.org/MakieReferenceImages/gallery//mouse_picking/index.html)

However contrary to the example documentation no axis markings and labels appear. What to do, to get them?

My version of the sample:

```julia
import Pkg; Pkg.add("GLMakie"); using GLMakie

img = rand(100, 100)
scene = Scene(resolution = (500, 500))
# , scale_plot = false
heatmap!(scene, img)
clicks = Node(Point2f0[(0,0)])
#on(scene.events.mousebuttons) do buttons
on(scene.events.mousebutton) do buttons
     if ispressed(scene, Mouse.left)
          pos = to_world(scene, Point2f0(scene.events.mouseposition[]))
         clicks[] = push!(clicks[], pos)
     end
     return
end
scatter!(scene, clicks, color = :red, marker = '+', markersize = 10)
# Do not execute beyond this point!
RecordEvents(scene, "output")

```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [July 12, 2023, 9:23am UTC](https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521/2 "2023-07-12T09:23:37Z")

</div>

That [juliaplots.org](http://juliaplots.org) site is very old, nowadays `Scene` doesn’t usually carry around its own axis anymore. Have a look at the actual documentation here: [Observables & Interaction · Makie](https://docs.makie.org/stable/documentation/nodes/index.html#observables_interaction)

---

<div class="post-metadata">

**Author:** ![Wulf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wulf/32/204058_2.png) [@Wulf](https://discourse.julialang.org/u/Wulf)\
**Post date:** [July 12, 2023, 2:49pm UTC](https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521/3 "2023-07-12T14:49:29Z")

</div>

Great thanks Jules,

my present version of the sample:

import Pkg; Pkg.add(“GLMakie”); using GLMakie

img = rand(1000, 1000)  
fig, ax = heatmap(img)

Makie.deactivate\_interaction!(ax, :rectanglezoom)  
spoint = select\_point(ax.scene, marker = :circle)  
clicks = Observable(Point2f)

on(spoint) do spoint  
push!(clicks, spoint)  
scatter!(ax, clicks, color = :gray, strokecolor = :red, strokewidth = 10)  
lines!(ax, clicks, color = :red, strokecolor = :red, linewidth = 5)  
end

fig
