Modify colorbar in heatmap

Hi, I’m trying to create an animation from a sequence of heatmaps, and I want to keep the upper and lower limits of the colorbar steady. I.e. if a value of say 0.5 is plotted using pure white in one frame I want 0.5 to map to white in every single heatmap. This doesn’t happen if in another heatmap the plotted values range from 0.0 to 0.3 for example. I’m using Plots.jl but I’m more than happy to switch to a different library if it supports this.
I’ve tried to find a way to do this in the documentation but I haven’t been succesful. All I’ve been able to find is the heatmap(cmap=<…>) parameter, but this doesn’t seem to be very useful. Could anyone point me in the right direction?

Have you tried the heatmap() argument clims, to fix the colorbar limits?

Ah I must have missed that one, that does exactly what I want. Thank you!