Wrong heatmap orientation with Plots.jl

That’s not true, Makie uses first dim → x, second dim → y for everything, which is why images are not correctly oriented by default.

julia> heatmap([
           1 2
           3 4
       ], colormap = [:red, :green, :blue, :orange])

To get the expected orientation for images, you have to do something like this:

julia> heatmap([
           1 2
           3 4
       ]', colormap = [:red, :green, :blue, :orange], axis = (; yreversed = true))

1 Like