Mercurial > repos > public > sbplib
comparison +parametrization/place_label.m @ 886:8894e9c49e40 feature/timesteppers
Merge with default for latest changes
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 15 Nov 2018 16:36:21 -0800 |
parents | 0e198af1184b |
children |
comparison
equal
deleted
inserted
replaced
816:b5e5b195da1e | 886:8894e9c49e40 |
---|---|
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 |