convert dic to array and plot imagesc