Why is my code not making the MATLAB text bold?

Why does this not make the text bold?
text(x8,y8,txt8,'Interpreter','latex','FontSize',10,'FontWeight','b')

Respuestas (1)

Cam Salzberger
Cam Salzberger el 1 de Nov. de 2017

0 votos

Hello Benjamin,
The 'latex' interpreter appears to be what is preventing the 'FontWeight' property from having an effect. If you remove the 'Interpreter' specification, the bold font is applied.
For an alternative way of applying bold formatting to latex-interpreted text, see this answer.
-Cam

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Nov. de 2017

Respondida:

el 1 de Nov. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by