Is it possible to interpret legends differently?

I woud like to interpret a legend by 'latex' but another without LaTeX, is it possible?

 채택된 답변

Adam
Adam 2017년 2월 2일
편집: Adam 2017년 2월 2일

0 개 추천

Yes, when you create a legend either set 'Interpreter' when you create it or use
hLegend = legend(...)
to keep a handle to your legend, then you can change it afterwards as e.g.
hLegend.Interpreter = 'none';

추가 답변 (1개)

Jan
Jan 2017년 2월 2일

0 개 추천

You can set the interpreter for each legend individually:
subplot(1,2,1)
h1 = plot(1:10)
legend(h1, '$2^n$', 'Interpreter', 'LaTeX');
subplot(1,2,2)
h2 = plot(1:20)
legend(h2, '$2^n$', 'Interpreter', 'none');

카테고리

질문:

2017년 2월 2일

답변:

Jan
2017년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by