# Empty plot with colorbar and colorbar width

**URL:** <https://discourse.julialang.org/t/empty-plot-with-colorbar-and-colorbar-width/128673>\
**Category:** Visualization\
**Tags:** plots, gr\
**Created:** [May 3, 2025, 7:24pm UTC](https://discourse.julialang.org/t/empty-plot-with-colorbar-and-colorbar-width/128673 "2025-05-03T19:24:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 3, 2025, 8:01pm UTC](https://discourse.julialang.org/t/empty-plot-with-colorbar-and-colorbar-width/128673/3 "2025-05-03T20:01:29Z")

</div>

> [@PharmCat](#):
>
> Is it possible to change width of colorbar?

I would use a layout and instead of the colorbar I would plot a heatmap with only the y-axis labels. See [this solution](https://discourse.julialang.org/t/setting-the-foreground-color-of-colorbar-tick-marks/122911/4).

---

_[View the full topic](https://discourse.julialang.org/t/empty-plot-with-colorbar-and-colorbar-width/128673)._
