view 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
line wrap: on
line source
function setcolours(bg,fg)
% setcolours - set default foreground and background colours for figures
%
% setcolours :: colour ~'background', colour ~'foreground' -> action.
%
% colour ::= [[1,3]] | {'k','r','g','b','c','m','y','w'}.
%
% Background colour is applied to figure and axes background.
% Foreground colour is applied to axes lines and labels.

set(0, ...
	'DefaultAxesColor',bg, ...
	'DefaultFigureColor',bg, ...
	'DefaultTextColor',fg, ...
	'DefaultAxesxColor',fg, ...
	'DefaultAxesyColor',fg, ...
	'DefaultAxeszColor',fg);