# Colorbar position inside layout

**URL:** https://discourse.julialang.org/t/colorbar-position-inside-layout/59762
**Category:** General Usage
**Tags:** makie, makielayout
**Created:** [April 22, 2021, 12:19am UTC](https://discourse.julialang.org/t/colorbar-position-inside-layout/59762 "2021-04-22T00:19:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AshtonSBradley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashtonsbradley/32/11140_2.png) [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)
#### Post date: [April 22, 2021, 12:19am UTC](https://discourse.julialang.org/t/colorbar-position-inside-layout/59762/1 "2021-04-22T00:19:20Z")

</div>

having done (the heatmap is the 4th plot down in a 5x2 layout)

`cbar = Colorbar(f[4, 1][2, 1], vertical=false,height = 20)`

I get something like this:

 ![Screen Shot 2021-04-22 at 12.15.29 PM](https://global.discourse-cdn.com/julialang/original/3X/8/1/815d5f9fb63007e5285f13a1ced923f458d9224d.png)

Is there a way to get the colorbar to sit just below the heatmap, using the whitespace created by the axis to the right that the heatmap is aligned to?

---

<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: [April 22, 2021, 5:30pm UTC](https://discourse.julialang.org/t/colorbar-position-inside-layout/59762/2 "2021-04-22T17:30:35Z")

</div>

just put the heatmap at f[4, 1][1, 1] and then also set `flipaxis = false` on the colorbar
