更改两行图形标题中的字体 [英] Changing font in a two line figure title
本文介绍了更改两行图形标题中的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用两行内容来编写图形标题,以便可以分别更改两行的文本属性.我发现:
I want to write my figure title in two lines in a way that I can change the text properties of both lines separately. I found:
title(['\bf{first line}' char(10) '\rm{second line}'])
使第一行变为粗体.但是,如何更改第一行的字体大小?
which makes the first line bold. But how can I change the font size for first line?
推荐答案
title(['\fontsize{20pt}\bf{first line}' char(10) '\fontsize{10pt}\rm{second line}'])
我发现该语法隐藏在文档中: http://www.mathworks.com/help/matlab/creating_plots/adding-text-annotations-to-graphs.html#f0-19466 然后把它弄乱.
I found this syntax hidden in the docs: http://www.mathworks.com/help/matlab/creating_plots/adding-text-annotations-to-graphs.html#f0-19466 And then fiddled it bit.
这篇关于更改两行图形标题中的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文