Is that possible to draw a scale bar in figure?
29 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abuzer
am 3 Apr. 2013
Kommentiert: Image Analyst
am 25 Nov. 2013
I am using quiver function with scale factor 1. But for understand the differences between the points or precisely show the distances I need a scale bar which shows the scaling amount. how can I draw it in figure? By the way I am using coordinates with meter unit. And displacements are in cm level.
I tried these commands but it doesnt have a solution for me, any other ideas?
import data
data=x1;y1;v;u
plot(x1,y1,'o');
h=quiver(x1, y1, v, u, 1,'ShowArrowHead','off');
quiver(max(x1)+50,min(y1)+50,0,40,'>r','filled');
text(max(x1)-20,min(y1)+20,'Scale= 4 cm','Color','r','FontWeight','bold');
Thanks.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 24 Nov. 2013
Maybe you'd find this useful:
2 Kommentare
Image Analyst
am 25 Nov. 2013
I have not downloaded but it loook like you can jsut do
SCALEBAR(haxesPlot, 'ScaleLength', 1, 'Northeast');
like it directs in the comments. Did you try that?
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Vector Fields 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!