Superscript minus vanishes using latex interpreter.
조회 수: 9 (최근 30일)
이전 댓글 표시
When adding text to a plot, why does text(0.1,0.5,'$\tilde{V}^{+}$','Interpreter','latex')
produce the + superscript sign while
text(0.1,-0.5,'$\tilde{V}^{-}$','Interpreter','latex')
does not give any - superscript.
답변 (1개)
Oleg Komarov
2011년 5월 3일
You are creating text objects on the same position:
t1 = text(0.1,0.5,'$\tilde{V}^{+}$','Interpreter','latex');
t2 = text(0.1,0.5,'$\tilde{V}^{-}$','Interpreter','latex');
To see the second:
- delete the first
delete(t1)
- close the figure before calling t2
- use different position for t2
댓글 수: 8
Teja Muppirala
2011년 5월 3일
Not to doubt you, but copy and paste these 4 lines into MATLAB. Do you REALLY not see a V with a minus sign there?
clear all;
close all;
figure;
text(0.1 , 0.5,'$\tilde{V}^{-}$','Interpreter','latex','fontsize',200);
If you don't, then I have no idea.
Teja Muppirala
2011년 5월 3일
If you tried the above, and could see the giant V with the minus sign, then it's probably just a case of your axis limits being wrong. In which case, adjust them:
t1 = text(0.1,0.5,'$\tilde{V}^{+}$','Interpreter','latex');
t2 = text(0.1,-0.5,'$\tilde{V}^{-}$','Interpreter','latex');
ylim([-1 1]);
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!