Skip to content

Commit

Permalink
moved
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBlankertz committed Feb 18, 2014
1 parent 34b6cf0 commit 210da9b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 53 deletions.
20 changes: 0 additions & 20 deletions visualization/private/visutil_unifyCLim.m

This file was deleted.

41 changes: 41 additions & 0 deletions visualization/utils/gridutil_getAxisPos.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
function pos= gridutil_getAxisPos(mnt, ic)
%pos= gridutil_getAxisPos(mnt, ic)
%
% ic=0 or ic=nChans+1 for status box

nChans= length(mnt.clab);
if length(ic)==1 && ic==0,
ic= nChans+1;
end

if ~isfield(mnt, 'box'),
figure;
ha= subplotxl(nChans+1, [], ic, .01, .01);
pos= get(ha, 'position');
close(gcf);
return;
end

x= mnt.box(1,:);
y= mnt.box(2,:);
w= mnt.box_sz(1,:);
h= mnt.box_sz(2,:);
if isfield(mnt, 'scale_box'),
x= cat(2, x, mnt.scale_box(1));
y= cat(2, y, mnt.scale_box(2));
w= cat(2, w, mnt.scale_box_sz(1));
h= cat(2, h, mnt.scale_box_sz(2));
end
if length(ic)==1,
axpos= [x(ic) y(ic) w(ic) h(ic)];
else
axpos= ic;
if length(axpos)==2,
axpos= [axpos 1 1];
end
end

bs= 0.005;
siz= (1+2*bs)*[max(x+w) - min(x) max(y+h) - min(y)];
pos= [axpos(1)-min(x) axpos(2)-min(y) axpos([3 4])]./[siz siz];
pos= pos + [bs bs 0 0];
20 changes: 0 additions & 20 deletions visualization/utils/private/visutil_fitFontsize.m

This file was deleted.

13 changes: 0 additions & 13 deletions visualization/utils/private/visutil_textFit.m

This file was deleted.

0 comments on commit 210da9b

Please sign in to comment.