【发布时间】:2018-11-21 12:24:25
【问题描述】:
我正在尝试以一种独立于其他字体属性的方式控制子图标题的属性,同时使用乳胶作为解释器(我认为最后一部分不相关,但以防万一)。这是一个示例代码:
% Figure handle
fig1 = figure;
% Subplot 1
subplot(2,1,1)
plot(rand(100,1))
xlabel('$x$ label')
ylabel('$y$ label')
title('First subplot')
% Subplot 2
subplot(2,1,2)
plot(rand(100,1))
xlabel('$x$ label')
ylabel('$y$ label')
title('Second subplot')
% Setting global properties
set(findall(fig1,'-property','FontSize'),'FontSize',14)
set(findall(fig1,'-property','Interpreter'),'Interpreter','Latex')
set(findall(fig1,'-property','TickLabelInterpreter'),'TickLabelInterpreter','Latex')
当我这样做时,我可以设置轴标签、刻度标签和子图标题的大小和解释器。这使得标题具有与其他对象相同的样式。
有没有办法独立控制标题属性,例如使它们稍微更大和更粗,以便与轴标签轻松区分开来?
【问题讨论】:
标签: matlab matlab-figure