From my calculations I obtain a 2D array of real numbers. What i want to do with them is to plot them as an image where the values of the array's elements translate into a colormap. Till now I used the package PyPlot for this kind of visualization. With Pyplot it was pretty easy. An example using gray values would be
using PyPlot
test = rand(3,3);
PyPlot.gray()
imshow(test,interpolation="none")
colorbar()
Is there a way to do the same but with the PGFPlots package instead of PyPlot? I have already tried to use Plots.Image but that did not work with an array instead of a function. Any ideas?