-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrefresh.m
35 lines (34 loc) · 1.02 KB
/
refresh.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function refresh( varargin )
% REFRESH redraws the labels and/or the carpet plot
%
% refresh(obj1,obj2,obj3,...) redraw the labels and the carpet plot
% refresh(...,'textrotation') updates the label rotation
% refresh(...,'plot') redraws the carpet plot
%
% See also: CarpetPlot.reset
if ischar(varargin{end})
switch varargin{end}
case 'textrotation'
for n = 1:size(varargin{1}(:),1)
varargin{1}(n).refreshlabels(1)
varargin{1}(n).refreshlabels(2)
end
case 'plot'
for n = 1:size(varargin{1}(:),1)
varargin{1}(n).refreshplot;
end
otherwise
for n = 1:size(varargin{1}(:),1)
varargin{1}(n).refreshlabels(1)
varargin{1}(n).refreshlabels(2)
varargin{1}(n).refreshplot;
end
end
else
for n = 1:size(varargin{1}(:),1)
varargin{1}(n).refreshlabels(1)
varargin{1}(n).refreshlabels(2)
varargin{1}(n).refreshplot;
end
end
end