# Way to add colorbar label to pgfplot in Plots.jl framework?

**URL:** <https://discourse.julialang.org/t/way-to-add-colorbar-label-to-pgfplot-in-plots-jl-framework/13655>\
**Category:** Visualization\
**Tags:** question, plots, pgfplot\
**Created:** [August 18, 2018, 9:36am UTC](https://discourse.julialang.org/t/way-to-add-colorbar-label-to-pgfplot-in-plots-jl-framework/13655 "2018-08-18T09:36:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [August 18, 2018, 9:36am UTC](https://discourse.julialang.org/t/way-to-add-colorbar-label-to-pgfplot-in-plots-jl-framework/13655/1 "2018-08-18T09:36:44Z")

</div>

I have the following plot:

 ![15%20AM](https://global.discourse-cdn.com/julialang/original/3X/7/7/7792c02f59b18aad39e231a7909a697e1f2a7b79.png)

The only thing really missing from it, though, is a label above the colorbar saying `B_0`

How do you do this?

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [August 18, 2018, 10:12am UTC](https://discourse.julialang.org/t/way-to-add-colorbar-label-to-pgfplot-in-plots-jl-framework/13655/2 "2018-08-18T10:12:28Z")

</div>

Short answer, you can’t

I just made a PR for it though:

> <https://github.com/JuliaPlots/Plots.jl/pull/1674/files>
>
> resolves:
> 
> + https://discourse.julialang.org/t/way-to-add-colorbar-label-to-pg…fplot-in-plots-jl-framework/13655

* * *

 ![57%20AM](https://global.discourse-cdn.com/julialang/original/3X/8/5/85f651a08d78b8330cf21748d0fbe5720f98d55c.png)
