MATLAB: How to don’t display the x values labels in heat map

heatmap

I don't want to display the x-values labels of the first figure (1995,1996,…,2005).untitled.jpg

Best Answer

Try this:
data1 = randi(9, 3);
figure
h1 = heatmap(data1);
cdl = h1.XDisplayLabels; % Current Display Labels
h1.XDisplayLabels = repmat(' ',size(cdl,1), size(cdl,2)); % Blank Display Labels
Having the code you used to create those figures would help.