# Hide colorbar axis and add top and bottom label in Plots.jl

**URL:** <https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592>\
**Category:** Visualization\
**Tags:** pyplot, plots\
**Created:** [May 24, 2019, 11:01pm UTC](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592 "2019-05-24T23:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![babaq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/babaq/32/891_2.png) [@babaq](https://discourse.julialang.org/u/babaq)\
**Post date:** [May 24, 2019, 11:01pm UTC](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592/1 "2019-05-24T23:01:50Z")

</div>

Hi,

I am trying to plot a heatmap with a colorbar, but I want to hide the axis lines and tick numbers, and add labels on top and bottom of the colorbar.

I could achieve this,

```plaintext
heatmap(rand(10,10),color=:RdBu,colorbar_title="ColorBar")

```

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/a/0/a0f0075a47a62e16b64fc28e219ec4b8025711b4.png)  
but don’t know how to plot something like this  
 ![Untitled](https://global.discourse-cdn.com/julialang/original/3X/3/8/386fa174031cedb9a292c402ab89579124ea7c82.png)  
Can anyone help?

---

<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:** [February 5, 2022, 12:49pm UTC](https://discourse.julialang.org/t/hide-colorbar-axis-and-add-top-and-bottom-label-in-plots-jl/24592/2 "2022-02-05T12:49:34Z")

</div>

The ` pyplot()` backend of `Plots` allows manual labeling of the color bar ticks:

```julia
using Measures, Plots; pyplot(dpi=300)
m = rand(10,10); lm = extrema(m)
heatmap(data, c=:RdBu, margin=10mm, clims=lm, colorbar_ticks=(lm, ["sink","source"]))

```

 ![Plots_pyplot_colorbar_tick_labels](https://global.discourse-cdn.com/julialang/original/3X/4/e/4ef2599e40089ba1c799c315ca5d7d676e15b56a.png)
