How to show different text in plot annotation without overlapping for difference choice from pop up menu?
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to show different equation in the GUI plot for different choice from another pop up menu. However, the message from different choices overlapped when I click for different choice. What command should I look into in order to avoid overlapping messages?
My command is as below:
syms x y a b c
switch quadric_choice
case 1
D = msgbox('Please choose one quadric surface.');
case 2
axes(handles.axes4);
D ='$\frac{x^2}{a^2}$ + $\frac{y^2}{b^2}$ + $\frac{z^2}{c^2}$ = 1';
annotation(gcf,'textbox',[0.03,0.81,0.1,0.1],'string',D,'interpreter','latex','FontSize',20,'FitBoxToText','on');
case 3
axes(handles.axes4);
D = '$\frac{x^2}{a^2} + \frac{y^2}{b^2} - \frac{z^2}{c^2} = 1$';
annotation(gcf,'textbox',[0.03,0.81,0.1,0.1],'string',D,'interpreter','latex','FontSize',20,'FitBoxToText','on');
end
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!