font problem ??

조회 수: 2 (최근 30일)
idontunderstand
idontunderstand 2012년 2월 16일
편집: Anthony 2013년 10월 15일
in my script, I have:
h2=ylabel('k^2/(2 \pi)')
set(h1, 'FontSize', 14)
something I consider very standard. I usually create my plot sometimes locally (sitting in front of the terminal) and sometimes remotely (through ssh).
when I make the plot locally, the Pi shows correctly. However when I run matlab remotely on a terminal through ssh (although I am using the same installation of matlab), the Pi shows as p.
I wish matlab provided access to full latex capability natively, say through an environment variable that would allow me to use the version I want....
  댓글 수: 2
Jan
Jan 2012년 2월 16일
I assume you want to set the FontSize of h2 instead of h1?
idontunderstand
idontunderstand 2012년 2월 16일
Thanks for pointing that out... Yes I see your point but then I am using the default font size then.. I should not see the problem. Any explanations?

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

답변 (1개)

Andrew Newell
Andrew Newell 2012년 2월 16일
The default interpreter is actually TeX, and maybe that is causing your problem. Try this:
h2=ylabel('$k^2/(2 \pi)$')
set(h2, 'FontSize', 14,'Interpreter','latex')
Note that if you use the LaTeX interpreter, you need to surround your equations with dollar signs (as for an inline math expression).

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by