How to write _ in a plot legend?
    47 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is 

i want to 'a_b' in legend .......
How to write ??
0 Commenti
Risposta accettata
  Cris LaPierre
    
      
 il 4 Feb 2021
        Set the interpreter to 'none'
xxx = {'a_b'};
plot(1:5)
legend(xxx,'interpreter','none')
Più risposte (2)
  weikang zhao
      
 il 4 Feb 2021
        - change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
0 Commenti
Vedere anche
Categorie
				Scopri di più su Legend in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




