# \`Plots.jl\` colorbar title position

**URL:** <https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663>\
**Category:** Visualization\
**Tags:** pyplot, plots\
**Created:** [September 22, 2022, 6:28pm UTC](https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663 "2022-09-22T18:28:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamblejoe](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Post date:** [September 22, 2022, 6:28pm UTC](https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663/1 "2022-09-22T18:28:02Z")

</div>

Consider with pyplot

```julia
heatmap(1:10, 1:10, rand(10,10); 
  cbar=:top, 
  cbar_title="TITLE", 
  colorbar_titlefontsize=40, 
  colorbar_titlefontcolor=:white)

```

resulting in  
 ![tmp](https://global.discourse-cdn.com/julialang/original/3X/d/e/de9dd548e12fbc64119be04419a21b5522a8b6a6.png)  
How can I make the title of the colorbar appear at the top instead at the bottom of the colorbar?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [September 22, 2022, 10:34pm UTC](https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663/2 "2022-09-22T22:34:36Z")

</div>

A simple workaround, in case it helps:

```julia
using Measures, Plots; pyplot(dpi=100)
heatmap(1:10, 1:10, rand(10,10), cbar=:top, title="TITLE\n", titlefontsize=40, titlefontcolor=:blue, topmargin=-10mm)

```

---

<div class="post-metadata">

**Author:** ![jamblejoe](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Post date:** [September 23, 2022, 9:49am UTC](https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663/3 "2022-09-23T09:49:13Z")

</div>

Thank you. That works for me!
