Mercurial > repos > public > sbplib
annotate +parametrization/place_label.m @ 884:7d4f57725192 feature/poroelastic
Add a getBoundaryOperator method in multiblock.DiffOp that uses the the diffop get_boundary_operator method rather than its properties. Werpers might not like this.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 02 Nov 2018 10:47:03 -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 |