annotate graphics/colour/setcolours.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 setcolours(bg,fg)
|
samer@47
|
2 % setcolours - set default foreground and background colours for figures
|
samer@47
|
3 %
|
samer@47
|
4 % setcolours :: colour ~'background', colour ~'foreground' -> action.
|
samer@47
|
5 %
|
samer@47
|
6 % colour ::= [[1,3]] | {'k','r','g','b','c','m','y','w'}.
|
samer@47
|
7 %
|
samer@47
|
8 % Background colour is applied to figure and axes background.
|
samer@47
|
9 % Foreground colour is applied to axes lines and labels.
|
samer@47
|
10
|
samer@47
|
11 set(0, ...
|
samer@47
|
12 'DefaultAxesColor',bg, ...
|
samer@47
|
13 'DefaultFigureColor',bg, ...
|
samer@47
|
14 'DefaultTextColor',fg, ...
|
samer@47
|
15 'DefaultAxesxColor',fg, ...
|
samer@47
|
16 'DefaultAxesyColor',fg, ...
|
samer@47
|
17 'DefaultAxeszColor',fg);
|