Skip to content

Commit a23f292

Browse files
LineWidth of errorbars increased
1 parent fefefe0 commit a23f292

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

toolbox/utilities_stat/grpstatsFS.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,12 @@
452452
end
453453

454454
else
455-
swhichstats=string(whichstats);
455+
try
456+
% note that if there is a function handle string does not work
457+
swhichstats=string(whichstats);
458+
catch
459+
swhichstats=string(nomiStat);
460+
end
456461
if isscalar(swhichstats)
457462
selStats=swhichstats;
458463
selStats=replace(selStats,"meanci","meanCI");
@@ -512,7 +517,7 @@
512517

513518
end
514519

515-
errorbar(repelem(x(jj),p,1), mstatj, statj(2)-mstatj, 'o'); % 'o' specifies the marker type
520+
errorbar(repelem(x(jj),p,1), mstatj, statj(2)-mstatj, 'o','LineWidth',1); % 'o' specifies the marker type
516521
if ngroups==1
517522
ylim([xL xU])
518523
end

0 commit comments

Comments
 (0)