如何设置图片标题的字体大小?

205 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 24 de Sept. de 2020
Respondida: MathWorks Support Team el 24 de Sept. de 2020
我画了一个图,然后用title添加标题,但希望标题的字体大一些。

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 24 de Sept. de 2020
有两种方法来实现,不仅title的标题字体能修改,xlabel等坐标轴说明也可以。
1)使用figure对象及其子对象的属性:
>>plot(1:10)
>>title('My title')
>>xlabel('My label')
>>ax = gca;
>>ax.FontSize = 16;
2)在绘图的时候指定:
>>plot(1:10)
>>title('My title','FontSize',16)
>>xlabel('My label','FontSize',10)

Más respuestas (0)

Categorías

Más información sobre 标签和注释 en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!