# Add a colorbar to a viz in GeoStats

**URL:** <https://discourse.julialang.org/t/add-a-colorbar-to-a-viz-in-geostats/112193>\
**Category:** New to Julia\
**Tags:** geostats\
**Created:** [March 27, 2024, 5:00pm UTC](https://discourse.julialang.org/t/add-a-colorbar-to-a-viz-in-geostats/112193 "2024-03-27T17:00:37Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![TimG](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TimG](https://discourse.julialang.org/u/TimG)\
**Post date:** [March 28, 2024, 10:00am UTC](https://discourse.julialang.org/t/add-a-colorbar-to-a-viz-in-geostats/112193/10 "2024-03-28T10:00:24Z")

</div>

> [@juliohm](#):
>
> `cbar = Mke.Colorbar(fig[1,2], limits = extrema(color), colormap = "hawaii")`

This works well. Thank you.

Now, at the risk of overloading this topic, how can I make the colors consistent across multiple maps of different cities. For example, here are Manchester and London compared:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/e/de4f7c27ad278febf4f13ad7dd53ffc2fb86f006.png)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/e/8e0e27ca1bd24141cd29efb70da30225f77ea9ee.png)  
The colormap is autoscaled to the data in each map, so the colors are not comparable between the two. Can I fix this, so that the colorbar is consistent across multiple maps?

---

_[View the full topic](https://discourse.julialang.org/t/add-a-colorbar-to-a-viz-in-geostats/112193)._
