How can I set automatically the textarrow position on a graph?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I would like to place the top of the arrow in a text-arrow annotation automatically on a plot, taking as reference a specific point of a line
0 Commenti
Risposte (2)
Oleg Komarov
il 20 Feb 2013
Modificato: Oleg Komarov
il 20 Feb 2013
You will find this utility very useful: http://www.mathworks.co.uk/matlabcentral/fileexchange/10656-data-space-to-figure-units-conversion
plot(1:10);
% tail
[xt yt] = ds2nfu(3, 6);
% head
[xh yh] = ds2nfu(5, 5);
a = annotation('textarrow', [xt xh],[yt yh], 'String' , 'Straight Line');
0 Commenti
Azzi Abdelmalek
il 20 Feb 2013
Modificato: Azzi Abdelmalek
il 20 Feb 2013
annotation('textarrow',[x0,x1],[y0,y1],'String',yourtext);
0 Commenti
Vedere anche
Categorie
Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!