samer@47: function setcolours(bg,fg) samer@47: % setcolours - set default foreground and background colours for figures samer@47: % samer@47: % setcolours :: colour ~'background', colour ~'foreground' -> action. samer@47: % samer@47: % colour ::= [[1,3]] | {'k','r','g','b','c','m','y','w'}. samer@47: % samer@47: % Background colour is applied to figure and axes background. samer@47: % Foreground colour is applied to axes lines and labels. samer@47: samer@47: set(0, ... samer@47: 'DefaultAxesColor',bg, ... samer@47: 'DefaultFigureColor',bg, ... samer@47: 'DefaultTextColor',fg, ... samer@47: 'DefaultAxesxColor',fg, ... samer@47: 'DefaultAxesyColor',fg, ... samer@47: 'DefaultAxeszColor',fg);