# Color scale and zlim in heatmap in Plots, pyplot()

**URL:** https://discourse.julialang.org/t/color-scale-and-zlim-in-heatmap-in-plots-pyplot/31678
**Category:** General Usage
**Created:** [November 29, 2019, 10:56pm UTC](https://discourse.julialang.org/t/color-scale-and-zlim-in-heatmap-in-plots-pyplot/31678 "2019-11-29T22:56:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![juliauser](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@juliauser](https://discourse.julialang.org/u/juliauser)
#### Post date: [November 29, 2019, 10:56pm UTC](https://discourse.julialang.org/t/color-scale-and-zlim-in-heatmap-in-plots-pyplot/31678/1 "2019-11-29T22:56:38Z")

</div>

I would like to plot 2 heatmap that have a different range of values but preserve comparability, so that the colors have the same meaning in both plots. How can I fix the “zlim”?

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [November 30, 2019, 11:19am UTC](https://discourse.julialang.org/t/color-scale-and-zlim-in-heatmap-in-plots-pyplot/31678/2 "2019-11-30T11:19:34Z")

</div>

the keyword for that is `clims` ( color limits ).
