comparison +grid/place_label.m @ 0:48b6fb693025

Initial commit.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 17 Sep 2015 10:12:50 +0200
parents
children 5cb99f56f55e
comparison
equal deleted inserted replaced
-1:000000000000 0:48b6fb693025
1 function place_label(pt,str,horzAl,vertAl)
2 default_arg('horzAl','center');
3 default_arg('vertAl', 'middle');
4
5 x = pt(1);
6 y = pt(2);
7 h = text(x,y,str);
8 h.HorizontalAlignment = horzAl;
9 h.VerticalAlignment = vertAl;
10 end