annotate 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 |
|
rev |
line source |
samer@47
|
1 function noticks(a,b)
|
samer@47
|
2 % noticks - removes ticks from current axis
|
samer@47
|
3 %
|
samer@47
|
4 % noticks % removes all ticks
|
samer@47
|
5 % noticks('x') % removes x ticks
|
samer@47
|
6 % noticks('yz') % removes y and z ticks
|
samer@47
|
7
|
samer@47
|
8 if nargin==0
|
samer@47
|
9 ax=gca; spec='xyz';
|
samer@47
|
10 elseif nargin==1
|
samer@47
|
11 if ishandle(a), ax=a; spec='xyz';
|
samer@47
|
12 else ax=gca; spec=a;
|
samer@47
|
13 end
|
samer@47
|
14 else
|
samer@47
|
15 ax=a; spec=b;
|
samer@47
|
16 end
|
samer@47
|
17
|
samer@47
|
18 if ismember('x',spec), set( ax, 'XTick',[]); end
|
samer@47
|
19 if ismember('y',spec), set( ax, 'YTick',[]); end
|
samer@47
|
20 if ismember('z',spec), set( ax, 'ZTick',[]); end
|