How to write _ in a plot title?

조회 수: 150 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by