5
我试图将几个Matlab图组合成一个图,因此我想知道如何在我的图上创建'正常'瓦而不是由Matlab提供的粗体标题。下面是一个例子。如何为MATLAB数字“取消”粗体字标题?
figure
plot((1:10).^2)
title({'First line';'Second line'})
我试图将几个Matlab图组合成一个图,因此我想知道如何在我的图上创建'正常'瓦而不是由Matlab提供的粗体标题。下面是一个例子。如何为MATLAB数字“取消”粗体字标题?
figure
plot((1:10).^2)
title({'First line';'Second line'})
利用'FontWeight'
说法:
figure
plot((1:10).^2)
title({'First line';'Second line'},'FontWeight','Normal')
还请注意,您可以访问'FontWeight'
参数为你的身材所有文本对象一气呵成---在你的情况下,例如,几个次要情节在你的身影---使用findall
:
myFig = figure;
subplot(2,1,1)
plot((1:10).^2)
title('First plot')
subplot(2,1,2)
plot((1:10).^2)
title('Second plot')
% Set 'Normal' font weight in both titles above
set(findall(myFig, 'Type', 'Text'),'FontWeight', 'Normal')
正如上面的注释中规定;对于单个数字标题,您可以使用\rm
作为替代。但请注意,\rm
取决于'Interpreter'
的(默认)选项,而上述方法适用于所有解释器选择(但对使用解释器'latex'
的文本对象没有影响)。
我想你想删除粗体字体?如此处所述添加\t''\ bf your title'' http://uk.mathworks.com/help/matlab/ref/title.html – GameOfThrows
或者您是否试图为每个您正在合并的情节标题标题?在这种情况下,你应该使用'subplot'并为每个子图发布一个单独的标题。 – GameOfThrows
@GameOfThrows不应该是'\ sl'? – Dan