Hi,
Does anyone know if it is possible to use the \varphi character in a legend of a graph ? I have set my default interpreter as "tex" but still the \varphi is not printed properly.
set(groot, 'defaultAxesTickLabelInterpreter','tex'); set(groot, 'defaultLegendInterpreter','tex'); set(0, 'defaultTextInterpreter', 'tex');
legend('\varphi', 'k');
I have tried using $\varphi$, and changing the interpreter to 'latex' but without success.
Thanks in advance !

 채택된 답변

Bish Erbas
Bish Erbas 2018년 9월 24일

3 개 추천

Try
legend({'$\varphi$'},'Interpreter','latex');

댓글 수: 2

Chen
Chen 2021년 4월 12일
I meet the same problem.And the code '$\varphi$' or '\varphi' can't be explained by matlab.
Chen
Chen 2021년 4월 12일
It worked.thank you very much!

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

추가 답변 (1개)

Bogdan Dzonlaga
Bogdan Dzonlaga 2018년 9월 24일

0 개 추천

It works perfectly, thank you very much !

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

질문:

2018년 9월 24일

댓글:

2022년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by