MATLAB Answers

text arrow annotation applying in axes in GUI

3 views (last 30 days)
Qinyi Guo
Qinyi Guo on 16 Sep 2020
Edited: Vasishta Bhargava on 16 Sep 2020
Why the text arrow does not show up when I apply <annotation('textarrow', X, Y)> in GUI? The related code is shown below, I run it directly in commond window (except the first line) , the text arrow is avaliable in the pop-up figure window. Is there someone can tell me how to add a text arrow in the diagram in GUI? Thank you so much.
axes(handles.process_output);
ezplot(matlabFunction(y),[0,1800]);
axis([0 1800 0 60]);
annotation('textarrow',[0.45 0.45],[0.6 0.7],'String',{'Step disturbance'});

  0 Comments

Sign in to comment.

Answers (1)

Vasishta Bhargava
Vasishta Bhargava on 16 Sep 2020
Edited: Vasishta Bhargava on 16 Sep 2020
% if true
% code
% end
set(0,'showHiddenHandles','on')
plottools('on')
Use this to make the GUI figure handles appear which activates the plottools features on GUI

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by