Changing Legend Font Using Latex Interpreter
Afficher commentaires plus anciens
Hi,
I want to change the font style of legend using Latex interpreter. I have tried using
h=legend('M1, {$\it{p_{\mathrm{s}}}$}=\rm{1}, Num.','M1, $\it{p_{\mathrm{s}}}$=\rm{1}, Sim.','M1, $\it{p_{\mathrm{s}}}$=\rm{0.9}, Num.','M1, $\it{p_{\mathrm{s}}}$=\rm{0.9}, Sim.','M2, $\it{p_{\mathrm{s}}}$=\rm{1}, Num.','M2, $\it{p_{\mathrm{s}}}$=\rm{1}, Sim.','M2, $\it{p_{\mathrm{s}}}$=\rm{0.9}, Num.','M2, $\it{p_{\mathrm{s}}}$=\rm{0.9}, Sim.','Location','NorthWest');
set(h, 'Interpreter', 'LaTex','Fontname','Times New Roman','Fontsize',16);
But it does not work. Font style changes to default Latex style.
I will be thankful for your support.
7 commentaires
Ameer Ahmed
le 30 Juin 2019
Adam Danz
le 30 Juin 2019
If that link didn't address your quesiton, then I don't understand your question. If the goal is to use latex in your legend and to change the font, that's what the link addresses.
Ameer Ahmed
le 1 Juil 2019
Modifié(e) : Ameer Ahmed
le 2 Juil 2019
Adam Danz
le 1 Juil 2019
In sort, matlab does not have a method of chaning font if you're using latex. There are undocumented ways that are explained in the link I provided.
Ameer Ahmed
le 2 Juil 2019
Adam Danz
le 2 Juil 2019
Looks like there's no known solution, then.
Réponses (0)
Catégories
En savoir plus sur Legend dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!