# \[Makie\] Combining Colorbars

**URL:** <https://discourse.julialang.org/t/makie-combining-colorbars/88460>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [October 8, 2022, 6:43pm UTC](https://discourse.julialang.org/t/makie-combining-colorbars/88460 "2022-10-08T18:43:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AstroBarker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/astrobarker/32/15170_2.png) [@AstroBarker](https://discourse.julialang.org/u/AstroBarker)\
**Post date:** [October 8, 2022, 6:43pm UTC](https://discourse.julialang.org/t/makie-combining-colorbars/88460/1 "2022-10-08T18:43:52Z")

</div>

I am using Makie to make a surface plot. However, I am constrained by the data layout to only plot one quarter at a time (resulting in four `surface` calls). What I need is a colorbar that represents the global figure, whereas now I have either a colorbar that is only accurate for part of the plot, for four separate colorbars (see below).

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/1/a188e0e00e421f7a9196a76267ff13697dc97316.jpeg)

Is there a straightforward way to achieve this?

---

<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:** [October 8, 2022, 6:47pm UTC](https://discourse.julialang.org/t/makie-combining-colorbars/88460/2 "2022-10-08T18:47:43Z")

</div>

You’d determine the overall extrema of your color data and set `colorrange = (min, max)` on all four surfaces. With that, each Colorbar will be the same so you can use just one.
