Mercurial > repos > public > sbplib
comparison +parametrization/place_label.m @ 427:a613960a157b feature/quantumTriangles
merged with feature/beams
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 26 Jan 2017 15:59:25 +0100 |
parents | 0e198af1184b |
children |
comparison
equal
deleted
inserted
replaced
426:29944ea7674b | 427:a613960a157b |
---|---|
1 % 'left' | 'center' | 'right' | |
2 % 'baseline' | 'top' | 'cap' | 'middle' | 'bottom' | |
3 function place_label(pt,str,horzAl,vertAl) | |
4 default_arg('horzAl','center'); | |
5 default_arg('vertAl', 'middle'); | |
6 | |
7 x = pt(1); | |
8 y = pt(2); | |
9 h = text(x,y,str); | |
10 h.HorizontalAlignment = horzAl; | |
11 h.VerticalAlignment = vertAl; | |
12 end |