I do not know how easy it is. The XtickLabel axis XtickLabel that define labels can only be strings.
If you need a not-so-easy way, you can do something in the spirit of the following incomplete (in the sense of an incomplete solution) code by creating one label:
h = imagesc(rand(7,7)); axh = gca; figh = gcf; xticks = get(gca,'xtick'); yticks = get(gca,'ytick'); set(gca,'XTickLabel',''); set(gca,'YTickLabel',''); pos = get(axh,'position'); % position of current axes in parent figure pic = imread('coins.png'); x = pos(1); y = pos(2); dlta = (pos(3)-pos(1)) / length(xticks); % square size in units of parant figure % create image label lblAx = axes('parent',figh,'position',[x+dlta/4,y-dlta/2,dlta/2,dlta/2]); imagesc(pic,'parent',lblAx) axis(lblAx,'off')
One of the problems is that the label will have the same color map of the original image.
source share