How to write _ in a plot legend?
Mostrar comentarios más antiguos
xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is

i want to 'a_b' in legend .......
How to write ??
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 4 de Feb. de 2021
legend(xxx, 'interpreter', 'none')
1 comentario
도현 김
el 4 de Feb. de 2021
weikang zhao
el 4 de Feb. de 2021
- change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
Categorías
Más información sobre Legend en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
