Changing Legend Font Using Latex Interpreter

조회 수: 3 (최근 30일)
Ameer Ahmed
Ameer Ahmed 2019년 6월 29일
댓글: Adam Danz 2019년 7월 2일
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
Ameer Ahmed
Ameer Ahmed 2019년 7월 2일
None of them worked in my case.
Adam Danz
Adam Danz 2019년 7월 2일
Looks like there's no known solution, then.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

제품


릴리스

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by