I am making heatmaps of a discrete function taking values 0…5 . Plots (GR) makes automatic scaling for me: min is green, max is red (with
seriescolor=RdYlGn_r ). I want the heatmaps to have the same “color scale” - 0 is green, 5 is red, even if I only have values e.g. 0…2 . Is it possible?
Similar, but not the same problem was discussed here Plots.jl: How can I get discrete colors in the colorbar of a heatmap? and here Discrete heatmap in Plots.jl