Mercurial > repos > public > sbplib
annotate +parametrization/place_label.m @ 969:adae8063ea2f feature/poroelastic
Remove silly getBoundaryOperator* methods in multiblock.DiffOp and make the getBoundaryOperator and getBoundaryQuadrature methods use the scheme.getBoundaryOperator/Quadrature methods instead of properties.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 25 Dec 2018 07:21:19 +0100 |
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 |