Why is my code not making the MATLAB text bold?

23 ビュー (過去 30 日間)
Benjamin Cowen
Benjamin Cowen 2017 年 11 月 1 日
回答済み: Cam Salzberger 2017 年 11 月 1 日
Why does this not make the text bold?
text(x8,y8,txt8,'Interpreter','latex','FontSize',10,'FontWeight','b')

回答 (1 件)

Cam Salzberger
Cam Salzberger 2017 年 11 月 1 日
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

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by