Mercurial > repos > public > sbplib
annotate +parametrization/place_label.m @ 1118:07d0caf915e4 feature/poroelastic
Introduce optFlag so that one can choose not to build the optimization-related cell of matrices called B. It is too computationally costly and should probably be done in a different way.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sun, 05 May 2019 19:05:31 -0700 |
parents | 0e198af1184b |
children |
rev | line source |
---|---|
358
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
1 % 'left' | 'center' | 'right' |
5cb99f56f55e
Added some utility functions. Improved some documentation.
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
2 % 'baseline' | 'top' | 'cap' | 'middle' | 'bottom' |
0 | 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 |