view graphics/noticks.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 noticks(a,b)
% noticks - removes ticks from current axis
%
% noticks % removes all ticks
% noticks('x') % removes x ticks
% noticks('yz') % removes y and z ticks

if nargin==0
	ax=gca; spec='xyz';
elseif nargin==1
	if ishandle(a), ax=a; spec='xyz';
	else ax=gca; spec=a;
	end
else
	ax=a; spec=b;
end

if ismember('x',spec), set( ax, 'XTick',[]); end
if ismember('y',spec), set( ax, 'YTick',[]); end
if ismember('z',spec), set( ax, 'ZTick',[]); end