italicize only a part of the legend

13 ビュー (過去 30 日間)
chris
chris 2024 年 3 月 17 日
回答済み: Star Strider 2024 年 3 月 17 日
hello
does anyone knows how to italicize only a part of my legend content with text interpretation?
thanks

採用された回答

Star Strider
Star Strider 2024 年 3 月 17 日
Use \it to begin it an \rm to end it. If you are doing that in an sprintf call, use \\it and \\rm respectively.
text(0.4, 0.4, 'Italisize \itonly part\rm of a text object')
.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by