Mercurial > hg > ishara
annotate graphics/yticks.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 82075c94eed1 |
children |
rev | line source |
---|---|
samer@47 | 1 function yticks(T,labels) |
samer@47 | 2 % YTICKS - set Y-tick positions and optionally labels |
samer@47 | 3 % |
samer@47 | 4 % yticks :: [[N]] -> unit. |
samer@47 | 5 % yticks :: [[N]] {[N]->text} -> unit. |
samer@47 | 6 |
samer@47 | 7 set(gca,'YTick',T); |
samer@47 | 8 if nargin>1, |
samer@47 | 9 set(gca,'YTickLabel',labels); |
samer@47 | 10 end |
samer@47 | 11 |
samer@47 | 12 |