How to access 'TextBox' in viewArray figure

5 Ansichten (letzte 30 Tage)
Chen
Chen am 19 Dez. 2017
Kommentiert: Chen am 22 Dez. 2017
After viewArray plot the array structure, I would like to move the position of the 'TestBox' in the figure, but I do not know how to access the Position of the 'TextBox'. Please see attached example, I like to move the 'TextBox' at right-low corner to other position in the figure

Akzeptierte Antwort

Honglei Chen
Honglei Chen am 21 Dez. 2017
Once you run viewArray, you can do
findall(gcf,'Type','TextBox')
It should return the all text boxes in the figure and you can find the one corresponding to the annotation. Then simply set the Position property of that handle and you can move the box.
HTH
  1 Kommentar
Chen
Chen am 22 Dez. 2017
Thanks HTH: it works. Happy holiday season! Chen

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by