How to make a heatmap with pgfplotsx?

Hi there! Which is the straightforward pgfplotsx way to make heatmap figure? For Plots is so easy:

V = rand(20, 20)
heatmap(V)

Thanks in advanced!

https://kristofferc.github.io/PGFPlotsX.jl/v1/examples/juliatypes/#D-2

Yes, well, I was doing some stuff in this way but I obtain some kind of interpolation…

w = range(1; stop = 30, length = 30)
@pgf Axis(
    {
        view = (0, 90),
        colorbar,
        "colormap/jet"
    },
    Plot3(
        {
            surf,
            shader = "flat",

        },
        Table(w, w, V))
)

pp

However, the correct plot must be…

pp

Well, I found a solution… But, probably it can be done in a more elegant way:

x = repeat(1:30, outer = 30)
y = repeat(1:30, inner = 30)
meta = vec(V)
c = Coordinates(x, y; meta = meta)
@pgf Axis(
    {   height = "12cm", width = "12cm", colorbar,
        "colormap/jet",
        enlargelimits = false,
        xtick = [1, 5, 10, 15, 20, 25, 30],
        ytick = [1, 5, 10, 15, 20, 25, 30],
    },
    PlotInc(
        {
            matrix_plot,
            mark = " ",
            point_meta = "explicit",
            "mesh/cols" = 30
        },
        c,
    )
)