Changing Legend Font Using Latex Interpreter

4 visualizzazioni (ultimi 30 giorni)
Ameer Ahmed
Ameer Ahmed il 29 Giu 2019
Commentato: Adam Danz il 2 Lug 2019
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 Commenti
Ameer Ahmed
Ameer Ahmed il 2 Lug 2019
None of them worked in my case.
Adam Danz
Adam Danz il 2 Lug 2019
Looks like there's no known solution, then.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by