# Heatmap wrong colorbar number resolution limits

**URL:** <https://discourse.julialang.org/t/heatmap-wrong-colorbar-number-resolution-limits/110209>\
**Category:** Visualization\
**Tags:** question, plots\
**Created:** [February 14, 2024, 2:47pm UTC](https://discourse.julialang.org/t/heatmap-wrong-colorbar-number-resolution-limits/110209 "2024-02-14T14:47:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 14, 2024, 3:25pm UTC](https://discourse.julialang.org/t/heatmap-wrong-colorbar-number-resolution-limits/110209/4 "2024-02-14T15:25:22Z")

</div>

The problem seems to be that the colorbar got truncated by a narrow figure margin. Increase it with `Measures`:

```julia
using Measures(), Plots; gr()
M = (rand(9,9) .- 0.5)/2000
heatmap(M, clims=(-0.0002, 0.0002), margins=10mm)

```

---

_[View the full topic](https://discourse.julialang.org/t/heatmap-wrong-colorbar-number-resolution-limits/110209)._
