Commit d6845f86 authored by jayd1860's avatar jayd1860
Browse files

Fix very small GUI fonts on MAC and simplify calling setGuiFonts make it...

Fix very small GUI fonts on MAC and simplify calling setGuiFonts make it figure out which is the right font rather than the caller
parent a0a8971e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -66,9 +66,9 @@ set(gca, 'yticklabel','')
set(gca, 'ygrid','off')
edgecol = 'none';
if ismac() || islinux()
	fs = 12;
	fs = 18;
else
	fs = 10;
	fs = 11;
end
hold on;

−4.83 KiB (38.9 KiB)

File changed.

No diff preview for this file type.

+1 −5
Original line number Diff line number Diff line
@@ -53,11 +53,7 @@ plotprobe.handles.data = [];
plotprobe.handles.figureDup = [];
SetGuiControls(handles)

if ispc()
setGuiFonts(handles.figure);
else
    setGuiFonts(handles.figure, 7);
end


% ----------------------------------------------------------------------
+7 −2
Original line number Diff line number Diff line
@@ -302,12 +302,17 @@ try
    
    % Plot the optodes on the axes
    if ~isProbeDrawn(SD)
        if ismac() || islinux()
            fs = 14;
        else
            fs = 11;
        end        
        for idx2=1:size(sPos,1)
            xa = sPos(idx2,1) - axXoff;
            ya = sPos(idx2,2) - axYoff;
            
            ht=text(xa,ya,sprintf('S%d',idx2));
            set(ht,'fontweight','bold')
            set(ht,'fontweight','bold','fontsize',fs)
            set(ht,'color',[1 0 0])
            
        end
@@ -316,7 +321,7 @@ try
            ya = dPos(idx2,2) - axYoff;
            
            ht=text(xa,ya,sprintf('D%d',idx2));
            set(ht,'fontweight','bold')
            set(ht,'fontweight','bold','fontsize',fs)
            set(ht,'color',[0 0 1])            
        end
    end
+5.56 KiB (58.1 KiB)

File changed.

No diff preview for this file type.

Loading