How to write _ in a plot title?

104 ビュー (過去 30 日間)
Mr M.
Mr M. 2015 年 5 月 26 日
編集済み: Stephen23 2015 年 5 月 26 日
The problem is that _ means subscript!

採用された回答

Sebastian Castro
Sebastian Castro 2015 年 5 月 26 日
Just put a backslash in front of it: \_
- Sebastian

その他の回答 (1 件)

Stephen23
Stephen23 2015 年 5 月 26 日
編集済み: Stephen23 2015 年 5 月 26 日
Actually there are two main ways of dealing with this. Each of them can be useful, depending on the circumstances:
  1. Use the string '\_' instead of '_'.
  2. Change the text property Interpreter to none:
The first one is easy to do if you are writing the strings by hand, The second one can be useful if the strings are generated automatically or are read from some data source.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by