How to write _ in a plot title?

169 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 26 de Mayo de 2015
Editada: Stephen23 el 26 de Mayo de 2015
The problem is that _ means subscript!

Respuesta aceptada

Sebastian Castro
Sebastian Castro el 26 de Mayo de 2015
Just put a backslash in front of it: \_
- Sebastian

Más respuestas (1)

Stephen23
Stephen23 el 26 de Mayo de 2015
Editada: Stephen23 el 26 de Mayo de 2015
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.

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by