% Script to format heatmaps
function y = updateFigFormat(caxislim)    
    fontSize = 12;
    fontName = 'Helvetica';

    gcf;
    colormap('parula')
    colorbar 
    caxis(caxislim);
    xlabel('P_2 (dBm)', 'FontSize', fontSize, 'FontName', fontName)
    ylabel('P_1 (dBm)', 'FontSize', fontSize, 'FontName', fontName)
    xticks([0 4 8 12 16 20])
    xticklabels({'0', '4', '8', '12', '16', '20'})
    yticks([0 4 8 12 16 20])
    yticklabels({'0', '4', '8', '12', '16', '20'})
    set(gcf, 'Color', 'White');
    set(gca,'YDir','normal', 'XGrid', 'off', 'YGrid', 'off', 'FontSize', fontSize, 'FontName', fontName)
end