我想更改 x & y 刻度标签的字体大小,但只能更改 y 刻度标签的大小。
以下是仅更改 y 刻度标签字体大小的代码:
figure(1);
for z=1:length(percentsolar)
for i=1:h
percentimprovement4(:,i) = percentimprovement2(1,:,i,z,1);
end
ax(z) = subplot(3,2,z);
boxplot(percentimprovement4);
set(ax(z), 'fontsize', 6);
ylabel('% improvement', 'fontsize',8,'fontweight', 'bold');
xlabel('Hour of the day', 'fontsize', 8,'fontweight', 'bold');
title(['PF improvement for ', num2str(percentsolar(z)),'% solar penetration'], 'fontsize', 10 ,'fontweight', 'bold');
clear percentimprovement4
end
linkaxes(ax);
saveas(gcf,'Boxplotshourly.jpg');