# Overlay a line plot and a heatmap in Makie.jl

**URL:** <https://discourse.julialang.org/t/overlay-a-line-plot-and-a-heatmap-in-makie-jl/110921>\
**Category:** General Usage\
**Created:** [February 28, 2024, 8:38pm UTC](https://discourse.julialang.org/t/overlay-a-line-plot-and-a-heatmap-in-makie-jl/110921 "2024-02-28T20:38:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryaan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bryaan/32/36858_2.png) [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Post date:** [February 28, 2024, 8:38pm UTC](https://discourse.julialang.org/t/overlay-a-line-plot-and-a-heatmap-in-makie-jl/110921/1 "2024-02-28T20:38:54Z")

</div>

How can I draw a heatmap in the bg and a line plot over it in Makie.jl?

```julia
fig[2, :] = chartgrid = GridLayout(tellwidth=false)

ax = Axis(chartgrid[1, 1])

heatmap!(ax, obc, colormap=:thermal)

lineplot = lines!(ax, plot_series)

```

---

<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:** [February 28, 2024, 8:54pm UTC](https://discourse.julialang.org/t/overlay-a-line-plot-and-a-heatmap-in-makie-jl/110921/2 "2024-02-28T20:54:29Z")

</div>

What doesn’t work in your code? Your question is a bit vague and I can’t execute your snippet like you posted it 🙂
