How to write _ in a plot legend?
    47 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    도현 김
 el 4 de Feb. de 2021
  
    
    
    
    
    Comentada: 도현 김
 el 4 de Feb. de 2021
            xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is 

i want to 'a_b' in legend .......
How to write ??
0 comentarios
Respuesta aceptada
  Cris LaPierre
    
      
 el 4 de Feb. de 2021
        Set the interpreter to 'none'
xxx = {'a_b'};
plot(1:5)
legend(xxx,'interpreter','none')
Más respuestas (2)
  weikang zhao
      
 el 4 de Feb. de 2021
        - change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
0 comentarios
Ver también
Categorías
				Más información sobre Legend 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!




